nRF5 SDK for Mesh v5.0.0
Macros
Defines

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...
 

Detailed Description

Serial interface defines.

Macro Definition Documentation

◆ NRF_MESH_SERIAL_PAYLOAD_MAXLEN

#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.

◆ NRF_MESH_SERIAL_PACKET_OVERHEAD

#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.

◆ SERIAL_EVT_MESH_MESSAGE_RECEIVED_LEN_OVERHEAD

#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.

◆ SERIAL_EVT_KEY_INDEX_INVALID

#define SERIAL_EVT_KEY_INDEX_INVALID   (0xFF)

Invalid key index.

Definition at line 57 of file serial_types.h.

◆ SERIAL_CMD_MESH_PACKET_SEND_OVERHEAD

#define SERIAL_CMD_MESH_PACKET_SEND_OVERHEAD   (10)

Mesh packet send command overhead.

Definition at line 59 of file serial_types.h.


Documentation feedback | Developer Zone | Subscribe | Updated