class documentation

class HwConfGbl(HwConf):

Constructor: HwConfGbl()

View In Hierarchy

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_instance Get the Hardware configuration instance.
Method __init__ Construct the Command Station/Global Configuration.
Constant DCC_STATE_MC DCC generation - First state machine on PIO 0
Constant RC2_STATE_MC RailCom Global detector state machine - 3rd on PIO 1
Property dcc_pins Pins used for DCC generation (DRV8874)
Property rc2_pins Pins used for RailCom channel 2
Property trk_pins Pins used for track state monitor
Instance Variable _c2_rx_pin Undocumented
Instance Variable _dcc_pin Undocumented
Instance Variable _enable_pin Undocumented
Instance Variable _fault_pin Undocumented
Instance Variable _max_led Undocumented
Instance Variable _sense_pin Undocumented
Instance Variable _sleep_pin Undocumented

Inherited from HwConf:

Constant NP_SM NeoPixel State Machine number for RP2040 (Pico, PicoW etc).
Constant NP_SM_P2 State Machine number for RP2350 (Pico2, Pico2W)
Constant OLED_I2C The oled is on I2C 0 (default GPIO pins 4 & 5).
Property max_led Number of Leds
Property name Configuration name for display.
Property np_pin GPIO Pin for NeoPixel chain.
Class Variable _hw_conf Undocumented
Instance Variable _name Undocumented
Instance Variable _np_pin Undocumented
@classmethod
def get_instance(cls):

Get the Hardware configuration instance.

This returns the singleton Command Station/Global Hardware Config instance.

Returns
The configuration instance.
def __init__(self):

Construct the Command Station/Global Configuration.

Define Global detector receive pin and pins used to interface the DRV8874.

DCC_STATE_MC =

DCC generation - First state machine on PIO 0

Value
const(0)
RC2_STATE_MC =

RailCom Global detector state machine - 3rd on PIO 1

Value
const(6)
@property
dcc_pins =

Pins used for DCC generation (DRV8874)

@property
rc2_pins =

Pins used for RailCom channel 2

@property
trk_pins =

Pins used for track state monitor

The usage of these pins for the track monitor is read-only.

_c2_rx_pin =

Undocumented

_dcc_pin =

Undocumented

_enable_pin =

Undocumented

_fault_pin =

Undocumented

_max_led: int =

Undocumented

_sense_pin =

Undocumented

_sleep_pin =

Undocumented