class documentation

class HwConfLcl(HwConf):

Constructor: HwConfLcl()

View In Hierarchy

Hardware configuration for the Quad local PCB.

This provides the hardware configuration for the Quad Local RailCom detector board (RC_LCL_4).

Class Method get_instance Get the Hardware configuration instance.
Method __init__ Construct the Local Configuration.
Method get_lcl_det Get local detector hardware assignements.
Constant BLK_I2C block occupancy is on I2C 1(default GPIO pins 6 & 7)
Instance Variable MAX_LED Number of NeoPixels.
Property dcc_sense GPIO pin for DCC power on sense.
Instance Variable _dcc_sense Undocumented
Instance Variable _max_led Undocumented
Instance Variable _rx_pin Undocumented
Instance Variable _state_machine 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 Local Hardware Config instance.

Returns
The DCC Command instance
def __init__(self):

Construct the Local Configuration.

Define DCC sense pin used for detectiing cutouts and allocate pin numbser and state machine number for each local detector.

def get_lcl_det(self, i):

Get local detector hardware assignements.

Parameters
iindex number of detector (in range 0 to 3)
Returns
the pin number for received data and the state machine number
BLK_I2C =

block occupancy is on I2C 1(default GPIO pins 6 & 7)

Value
const(1)
MAX_LED =

Number of NeoPixels.

@property
dcc_sense =

GPIO pin for DCC power on sense.

_dcc_sense =

Undocumented

_max_led: int =

Undocumented

_rx_pin: list[int] =

Undocumented

_state_machine: list[int] =

Undocumented