|
Open Model Railroad Network (OpenMRN)
|
Abstract class to get callbacks for recognized feedback messages. More...
#include <LogonFeedback.hxx>
Public Types | |
| enum | PacketType { UNKNOWN = 0 , GET_DATA_START , GET_DATA_CONT , LOGON_ENABLE , SELECT_SHORTINFO , LOGON_ASSIGN , MISC_254 } |
Public Member Functions | |
| virtual PacketType | classify_packet (uintptr_t feedback_key)=0 |
| Determines based on feedback key what the given DCC packet was. | |
| virtual void | process_select_shortinfo (uintptr_t feedback_key, bool error, uint64_t data)=0 |
| Handles a Select ShortInfo feedback message. | |
| virtual void | process_logon_assign (uintptr_t feedback_key, bool error, uint64_t data)=0 |
| Handles a Logon Assign feedback message. | |
| virtual void | process_decoder_id (uintptr_t feedback_key, bool error, uint64_t data)=0 |
| Handles a Decoder ID feedback message. | |
Abstract class to get callbacks for recognized feedback messages.
Definition at line 44 of file LogonFeedback.hxx.
Definition at line 47 of file LogonFeedback.hxx.
|
pure virtual |
Determines based on feedback key what the given DCC packet was.
| feedback_key | from the railcom packet. |
Implemented in dcc::LogonHandler< Module >.
|
pure virtual |
Handles a Decoder ID feedback message.
| feedback_key | refers to the packet it came from. |
| error | true if there was a transmission error or the data came in incorrect format. |
| data | 48 bits of payload. The low 44 bits of this is a decoder ID. |
Implemented in dcc::LogonHandler< Module >.
|
pure virtual |
Handles a Logon Assign feedback message.
| feedback_key | refers to the packet it came from. |
| error | true if there was a transmission error or the data came in incorrect format. |
| data | 48 bits of payload. |
Implemented in dcc::LogonHandler< Module >.
|
pure virtual |
Handles a Select ShortInfo feedback message.
| feedback_key | refers to the packet it came from. |
| error | true if there was a transmission error or the data came in incorrect format. |
| data | 48 bits of payload. |
Implemented in dcc::LogonHandler< Module >.