|
Open Model Railroad Network (OpenMRN)
|
Interface that the actual outputs have to implement in their hardware-specific classes. More...
#include <DccOutput.hxx>
Static Public Member Functions | |
| static void | hw_preinit (void) |
| Called once during hw_preinit boot state. | |
| static unsigned | start_railcom_cutout_phase1 (void) |
| Invoked at the beginning of a railcom cutout. | |
| static unsigned | start_railcom_cutout_phase2 (void) |
| Invoked at the beginning of a railcom cutout after the delay. | |
| static unsigned | stop_railcom_cutout_phase1 (void) |
| Invoked at the end of a railcom cutout. | |
| static void | stop_railcom_cutout_phase2 (void) |
| Invoked at the end of a railcom cutout. | |
| static void | enable_output (void) |
| Called once every packet by the driver, typically before the preamble, if the output is supposed to be on. | |
| static bool | need_railcom_cutout () |
| A dummy output never needs a railcom cutout. | |
| static void | set_disable_reason (DccOutput::DisableReason bit) |
Static Public Member Functions inherited from DccOutputHw< N > | |
| static bool | need_railcom_cutout () |
| Called by the driver to decide whether to make this channel participate in the railcom cutout. | |
| static bool | should_be_enabled () |
| Called once after the railcom cutout is done to decide whether this output should be reenabled. | |
| static void | clear_disable_reason (DccOutput::DisableReason bit) |
| Clears a disable reason. | |
Additional Inherited Members | |
Static Public Attributes inherited from DccOutputHw< N > | |
| static std::atomic_uint_least8_t | outputDisableReasons_ |
| Bitmask of why this output should be disabled. | |
| static std::atomic_uint_least8_t | isRailcomCutoutEnabled_ |
| 0 if we should not produce a railcom cutout; 1 for short cutout; 2 for regular cutout. | |
| static uint8_t | isRailcomCutoutActive_ |
| 1 if we are in a railcom cutout currently. | |
Static Protected Member Functions inherited from DccOutputHw< N > | |
| static void | set_disable_reason_impl (DccOutput::DisableReason bit) |
| Set one bit in the disable reasons bit field. | |
Interface that the actual outputs have to implement in their hardware-specific classes.
Definition at line 252 of file DccOutput.hxx.
|
inlinestatic |
Called once every packet by the driver, typically before the preamble, if the output is supposed to be on.
Definition at line 288 of file DccOutput.hxx.
|
inlinestatic |
Called once during hw_preinit boot state.
Definition at line 256 of file DccOutput.hxx.
|
inlinestatic |
A dummy output never needs a railcom cutout.
Definition at line 293 of file DccOutput.hxx.
|
inlinestatic |
Definition at line 298 of file DccOutput.hxx.
|
inlinestatic |
Invoked at the beginning of a railcom cutout.
Definition at line 262 of file DccOutput.hxx.
|
inlinestatic |
Invoked at the beginning of a railcom cutout after the delay.
Definition at line 269 of file DccOutput.hxx.
|
inlinestatic |
Invoked at the end of a railcom cutout.
Definition at line 276 of file DccOutput.hxx.
|
inlinestatic |
Invoked at the end of a railcom cutout.
Definition at line 282 of file DccOutput.hxx.