|
Open Model Railroad Network (OpenMRN)
|
Stores a DCC packet in memory. More...
#include <packet.h>
Classes | |
| struct | cmd_t |
| Specifies the meaning of the command byte for meta-commands to send. More... | |
| struct | pkt_t |
| Specifies the meaning of the command byte for packets to send. More... | |
Public Attributes | ||
| union { | ||
| uint8_t header_raw_data | ||
| struct pkt_t packet_header | ||
| struct cmd_t command_header | ||
| }; | ||
| uint8_t | dlc | |
| Specifies the number of used payload bytes. | ||
| uint8_t | payload [DCC_PACKET_MAX_PAYLOAD] | |
| Packet payload bytes. | ||
| uintptr_t | feedback_key | |
| An opaque key used by the hardware driver to attribute feedback information to the source of the packet. | ||
Stores a DCC packet in memory.
Used to send data from the packet generation (usually the command station refresh loop flows) to the DCC track driver.
| uint8_t DCCPacket::dlc |
| uintptr_t DCCPacket::feedback_key |
An opaque key used by the hardware driver to attribute feedback information to the source of the packet.
This key will be sent back in the dcc::Feedback structure. If the key is non-zero it is guaranteed that some feedback (maybe empty) will be sent back after the packet is transmitted to the track.
| uint8_t DCCPacket::payload[DCC_PACKET_MAX_PAYLOAD] |