How tomermeidan/cc works
EncoderHub is a WPF encoder-control application with a vendor-neutral driver contract and concrete iC-Haus PZ1SL and MHM1SL drivers. The main workflow is selecting a registered driver, connecting or resetting it, polling position, and issuing a preset—with optional EEPROM storage. Driver-specific communication is isolated behind the contract; the MHM driver uses a managed native wrapper, while PZ delegates to an external controller library. Some UI wiring and PZ internals are unsampled, so their relationships are omitted where not evidenced.
Main entry points: DriverControlViewModel.cs Driver Controls · App.xaml.cs App Startup · PZ1SLDriver.cs PZ1SL Driver · MHM1SLDriver.cs MHM1SL Driver
Components 19
Application UI
- App Startup
EncoderHub.App/App.xaml.cs - Main Window
EncoderHub.App/MainWindow.xaml.cs - Main ViewModel
EncoderHub.App/ViewModels/MainViewModel.cs - Driver Controls
EncoderHub.App/ViewModels/DriverControlViewModel.cs - Relay Commands
EncoderHub.App/ViewModels/RelayCommand.cs - ViewModel Base
EncoderHub.App/ViewModels/BaseViewModel.cs - Driver Control View
EncoderHub.App/Views/DriverControlView.xaml - Radial Gauge
EncoderHub.App/Controls/RadialGauge.cs
Driver Platform
- Driver Registry
EncoderHub.App/Models/DriverRegistry.cs - Driver Contract
EncoderHub.Abstractions/IEncoderDriver.cs
PZ1SL Driver
- PZ1SL Driver
EncoderHub.Driver.PZ1SL/PZ1SLDriver.cs - PZ Configuration
EncoderHub.Driver.PZ1SL/PZ1SLDriverConfiguration.cs - PZ Controller Library
MHM1SL Driver
- MHM1SL Driver
EncoderHub.Driver.MHM1SL/MHM1SLDriver.cs - MHM Configuration
EncoderHub.Driver.MHM1SL/MHM1SLDriverConfiguration.cs - MHM Native Wrapper
EncoderHub.Driver.MHM1SL/MHM1SLWrapper.cs - MHM Interop Types
EncoderHub.Driver.MHM1SL/Interop
Other components
- Operator
- MHM Native DLL
Connections 21
- Operator → Main Window: uses
- App Startup → Driver Registry: registers
EncoderHub.App/App.xaml.cs - App Startup → Driver Controls: registers
EncoderHub.App/App.xaml.cs - App Startup → Main ViewModel: registers
EncoderHub.App/App.xaml.cs - App Startup → Main Window: opens
EncoderHub.App/App.xaml.cs - Main Window → Main ViewModel: uses
EncoderHub.App/MainWindow.xaml.cs - Main ViewModel → Driver Controls: exposes
EncoderHub.App/ViewModels/MainViewModel.cs - Driver Controls → Driver Registry: loads drivers
EncoderHub.App/ViewModels/DriverControlViewModel.cs - Driver Controls → Driver Contract: commands and polls
EncoderHub.App/ViewModels/DriverControlViewModel.cs - Driver Controls → Relay Commands: creates commands
EncoderHub.App/ViewModels/DriverControlViewModel.cs - Driver Controls → ViewModel Base: inherits
EncoderHub.App/ViewModels/DriverControlViewModel.cs - Driver Registry → PZ1SL Driver: instantiates
EncoderHub.App/Models/DriverRegistry.cs - Driver Registry → MHM1SL Driver: instantiates
EncoderHub.App/Models/DriverRegistry.cs - PZ1SL Driver → Driver Contract: implements
EncoderHub.Driver.PZ1SL/PZ1SLDriver.cs - MHM1SL Driver → Driver Contract: implements
EncoderHub.Driver.MHM1SL/MHM1SLDriver.cs - PZ1SL Driver → PZ Configuration: uses settings
EncoderHub.Driver.PZ1SL/PZ1SLDriver.cs - PZ1SL Driver → PZ Controller Library: delegates connect and reads
EncoderHub.Driver.PZ1SL/PZ1SLDriver.cs - MHM1SL Driver → MHM Configuration: uses settings
EncoderHub.Driver.MHM1SL/MHM1SLDriver.cs - MHM1SL Driver → MHM Native Wrapper: calls
EncoderHub.Driver.MHM1SL/MHM1SLDriver.cs - MHM Native Wrapper → MHM Interop Types: uses declarations
EncoderHub.Driver.MHM1SL/MHM1SLWrapper.cs - MHM Native Wrapper → MHM Native DLL: invokes
EncoderHub.Driver.MHM1SL/MHM1SLWrapper.cs