class documentation
Hardware configuration for the integrated Command Station PCB.
This provides the hardware configuration for integrated Command Station PCB with booster and integrated global RailCom detector (RC_3).
| Class Method | get |
Get the Hardware configuration instance. |
| Method | __init__ |
Construct the Command Station/Global Configuration. |
| Constant | DCC |
DCC generation - First state machine on PIO 0 |
| Constant | RC2 |
RailCom Global detector state machine - 3rd on PIO 1 |
| Property | dcc |
Pins used for DCC generation (DRV8874) |
| Property | rc2 |
Pins used for RailCom channel 2 |
| Property | trk |
Pins used for track state monitor |
| Instance Variable | _c2 |
Undocumented |
| Instance Variable | _dcc |
Undocumented |
| Instance Variable | _enable |
Undocumented |
| Instance Variable | _fault |
Undocumented |
| Instance Variable | _max |
Undocumented |
| Instance Variable | _sense |
Undocumented |
| Instance Variable | _sleep |
Undocumented |
Inherited from HwConf:
| Constant | NP |
NeoPixel State Machine number for RP2040 (Pico, PicoW etc). |
| Constant | NP |
State Machine number for RP2350 (Pico2, Pico2W) |
| Constant | OLED |
The oled is on I2C 0 (default GPIO pins 4 & 5). |
| Property | max |
Number of Leds |
| Property | name |
Configuration name for display. |
| Property | np |
GPIO Pin for NeoPixel chain. |
| Class Variable | _hw |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _np |
Undocumented |
overrides
rp2da2.lib.hw_conf.HwConf.get_instanceGet the Hardware configuration instance.
This returns the singleton Command Station/Global Hardware Config instance.
| Returns | |
| The configuration instance. |
overrides
rp2da2.lib.hw_conf.HwConf.__init__Construct the Command Station/Global Configuration.
Define Global detector receive pin and pins used to interface the DRV8874.