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... | |
Detailed Description
Serial packet structure.
Definition at line 64 of file serial_packet.h.
Field Documentation
◆ length
| uint8_t serial_packet_t::length |
Length of the packet in bytes.
Definition at line 66 of file serial_packet.h.
◆ opcode
| uint8_t serial_packet_t::opcode |
Opcode of the packet.
Definition at line 67 of file serial_packet.h.
◆ cmd
| serial_cmd_t serial_packet_t::cmd |
Command packet parameters.
Definition at line 72 of file serial_packet.h.
◆ evt
| serial_evt_t serial_packet_t::evt |
Event packet parameters.
Definition at line 73 of file serial_packet.h.
◆ payload
| union { ... } serial_packet_t::payload |
Union of the various payload structures for all serial packets.
- mesh/serial/include/serial_packet.h