Serial packet structure. More...
#include <serial_packet.h>
Data Fields | |
uint8_t | length |
Length of the packet in bytes. More... | |
uint8_t | opcode |
Opcode of the packet. More... | |
union { | |
serial_cmd_t cmd | |
Command packet parameters. More... | |
serial_evt_t evt | |
Event packet parameters. More... | |
} | payload |
Union of the various payload structures for all serial packets. More... | |
Serial packet structure.
Definition at line 64 of file serial_packet.h.
uint8_t serial_packet_t::length |
Length of the packet in bytes.
Definition at line 66 of file serial_packet.h.
uint8_t serial_packet_t::opcode |
Opcode of the packet.
Definition at line 67 of file serial_packet.h.
serial_cmd_t serial_packet_t::cmd |
Command packet parameters.
Definition at line 72 of file serial_packet.h.
serial_evt_t serial_packet_t::evt |
Event packet parameters.
Definition at line 73 of file serial_packet.h.
union { ... } serial_packet_t::payload |
Union of the various payload structures for all serial packets.