package documentation

DCC and RailCom Package

This contains DCC and RailCom modules.

The following diagram shows the DCC and RailCom classes.

images/dcc.svg

DCC and RailCom Class Diagram

Module blk_mon This module contains the functions and classes for DCC block detection based on current load monitoring. This is for the resistor based detector where the ADC is on the track side of the galvanic isolation and uses a TI ADC1015 ADC rather than the Pico's own ADC.
Module dcc_cmd_pio This module contains the class and functions for low level DCC Command Serialisation for use with RailCom detection.
Module dcc_cmd_util This module contains classes for DCC command objects.
Module dcc_command This module provides high level APIs. It and associated modules in the package contain the functions and classes for DCC command station.
Module dcc_rc_ch1 This module contains the functions and classes for DCC RailCom block detection on Channel 1.
Module dcc_rc_ch2 This module contains the functions and classes for DCC RailCom DCC command mobile responses on Channel 2.
Module dcc_rc_pio This module contains the functions and classes for low level RailCom datagram reading. It's applicable for block occupancy detection on Channel 1 and central dcc command decoder responses on Channel 2.
Module trk_mon This module contains the class and functions for monitioring track / booster status and updating NeoPixel accordingly.