|
Open Model Railroad Network (OpenMRN)
|
Empty implementation of the railcom driver for boards that have no railcom hardware. More...
#include <RailcomDriver.hxx>
Private Member Functions | |
| void | feedback_sample () OVERRIDE |
| Call to the driver for sampling the current sensors. | |
| void | start_cutout () OVERRIDE |
| Instructs the driver that the railcom cutout is starting now. | |
| void | middle_cutout () OVERRIDE |
| Notifies the driver that the railcom cutout has reached the middle point, i.e., the first window is passed and the second window is starting. | |
| void | end_cutout () OVERRIDE |
| Instructs the driver that the railcom cutout is over now. | |
| void | no_cutout () OVERRIDE |
| Called instead of start/mid/end-cutout at the end of the current packet if there was no cutout requested. | |
| void | set_feedback_key (uint32_t key) OVERRIDE |
| Specifies the feedback key to write into the received railcom data packets. | |
Additional Inherited Members | |
Public Member Functions inherited from RailcomDriver | |
| virtual void | send_ch1 (const DCCFeedback *ch1_pkt) |
| Specifies what packet should be sent for the channel1 cutout. | |
| virtual void | send_ch2 (const DCCFeedback *ch2_pkt) |
| Specifies what packet should be sent for the channel2 cutout. | |
Empty implementation of the railcom driver for boards that have no railcom hardware.
Definition at line 100 of file RailcomDriver.hxx.
|
inlineprivatevirtual |
Instructs the driver that the railcom cutout is over now.
The driver will use this information to disable the UART receiver.
Implements RailcomDriver.
Definition at line 104 of file RailcomDriver.hxx.
|
inlineprivatevirtual |
Call to the driver for sampling the current sensors.
This call is performed repeatedly, in a configurable interval, on the next positive edge.
Implements RailcomDriver.
Definition at line 101 of file RailcomDriver.hxx.
|
inlineprivatevirtual |
Notifies the driver that the railcom cutout has reached the middle point, i.e., the first window is passed and the second window is starting.
The driver will use this information to separate channel 1 nd channel 2 data.
Implements RailcomDriver.
Definition at line 103 of file RailcomDriver.hxx.
|
inlineprivatevirtual |
Called instead of start/mid/end-cutout at the end of the current packet if there was no cutout requested.
Implements RailcomDriver.
Definition at line 105 of file RailcomDriver.hxx.
|
inlineprivatevirtual |
Specifies the feedback key to write into the received railcom data packets.
This feedback key is used by the application layer to correlate the stream of DCC packets to the stream of Railcom packets. This method shall be called before start_cutout. The feedback key set here is used until this method is called again.
| key | is the new feedback key. |
Implements RailcomDriver.
Definition at line 106 of file RailcomDriver.hxx.
|
inlineprivatevirtual |
Instructs the driver that the railcom cutout is starting now.
The driver will use this information to enable the UART receiver.
Implements RailcomDriver.
Definition at line 102 of file RailcomDriver.hxx.