Serial interface defines. More...
Macros | |
#define | NRF_MESH_SERIAL_PAYLOAD_MAXLEN (UINT8_MAX - 1) |
Maximum length of a serial packet's payload. More... | |
#define | NRF_MESH_SERIAL_PACKET_OVERHEAD (1UL) |
Overhead of the packet header, not including the length field. More... | |
#define | SERIAL_EVT_MESH_MESSAGE_RECEIVED_LEN_OVERHEAD (19 + NRF_MESH_SERIAL_PACKET_OVERHEAD) |
Message received event overhead. More... | |
#define | SERIAL_EVT_MESH_MESSAGE_RECEIVED_DATA_MAXLEN (NRF_MESH_SERIAL_PAYLOAD_MAXLEN - (SERIAL_EVT_MESH_MESSAGE_RECEIVED_LEN_OVERHEAD - NRF_MESH_SERIAL_PACKET_OVERHEAD)) |
Message received event data max length. | |
#define | SERIAL_PACKET_INTERNAL_EVENT_OVERHEAD (3) |
Internal event packet overhead: event_type, state, packet_size. | |
#define | SERIAL_EVT_KEY_INDEX_INVALID (0xFF) |
Invalid key index. More... | |
#define | SERIAL_CMD_MESH_PACKET_SEND_OVERHEAD (10) |
Mesh packet send command overhead. More... | |
Serial interface defines.
#define NRF_MESH_SERIAL_PAYLOAD_MAXLEN (UINT8_MAX - 1) |
Maximum length of a serial packet's payload.
Limited by the size of the length byte minus packet overhead (length and opcode).
Definition at line 58 of file nrf_mesh_serial.h.
#define NRF_MESH_SERIAL_PACKET_OVERHEAD (1UL) |
Overhead of the packet header, not including the length field.
Definition at line 60 of file nrf_mesh_serial.h.
#define SERIAL_EVT_MESH_MESSAGE_RECEIVED_LEN_OVERHEAD (19 + NRF_MESH_SERIAL_PACKET_OVERHEAD) |
Message received event overhead.
Definition at line 51 of file serial_types.h.
#define SERIAL_EVT_KEY_INDEX_INVALID (0xFF) |
Invalid key index.
Definition at line 57 of file serial_types.h.
#define SERIAL_CMD_MESH_PACKET_SEND_OVERHEAD (10) |
Mesh packet send command overhead.
Definition at line 59 of file serial_types.h.