38 #ifndef SERIAL_PACKET_H__ 39 #define SERIAL_PACKET_H__ 43 #include "serial_cmd.h" 44 #include "serial_evt.h" 45 #include "nrf_mesh_serial.h" 46 #include "nrf_mesh_assert.h" 55 #define SERIAL_PACKET_LENGTH_OVERHEAD (1) 57 #define SERIAL_PACKET_OVERHEAD (2) 64 typedef struct __attribute((packed))
70 union __attribute((packed))
Union of all serial event parameters.
serial_evt_t evt
Event packet parameters.
uint8_t opcode
Opcode of the packet.
serial_cmd_t cmd
Command packet parameters.
uint8_t length
Length of the packet in bytes.
Union of all command parameters.
#define NRF_MESH_STATIC_ASSERT(...)
Compile-time assertion.