38 #ifndef NRF_MESH_SERIAL_H__ 39 #define NRF_MESH_SERIAL_H__ 58 #define NRF_MESH_SERIAL_PAYLOAD_MAXLEN (UINT8_MAX - 1) 60 #define NRF_MESH_SERIAL_PACKET_OVERHEAD (1UL) The serial module is running.
uint32_t nrf_mesh_serial_enable(void)
Enable the serial connection.
nrf_mesh_serial_state_t nrf_mesh_serial_state_get(void)
Get the current state of the serial module.
void(* nrf_mesh_serial_app_rx_cb_t)(const uint8_t *p_data, uint32_t length)
Serial RX callback function type for application events.
The serial module has been initialized, but not started.
nrf_mesh_serial_state_t
Mesh serial states.
The serial module hasn't been initialized.
uint32_t nrf_mesh_serial_init(nrf_mesh_serial_app_rx_cb_t app_rx_cb)
Initialize the serial module and all its related submodules.
uint32_t nrf_mesh_serial_tx(uint8_t *p_data, uint32_t length)
Transmit a serial packet with the APPLICATION_EVT opcode across the serial.