44 #include "nrf_mesh_serial.h" 45 #include "serial_packet.h" 60 #define SERIAL_API_VERSION 10 131 void serial_cmd_rsp_send(uint8_t opcode, uint8_t status,
const uint8_t * p_data, uint16_t length);
void serial_tx(const serial_packet_t *p_packet)
Queues a packet for transmission on the serial interface.
void serial_cmd_rsp_send(uint8_t opcode, uint8_t status, const uint8_t *p_data, uint16_t length)
Send a simple command response to the given opcode, with the given serial status. ...
uint32_t serial_start(void)
Starts the serial interface by sending a device started event to the host.
nrf_mesh_serial_state_t serial_state_get(void)
Get current state of the serial module.
nrf_mesh_serial_state_t
Mesh serial states.
uint32_t serial_init(void)
Initializes the serial interface abstraction layer.
void serial_process(void)
Schedule processing for serial RX/TX.
uint8_t serial_translate_error(uint32_t status)
Translates an NRF_* error code into an ACI error code.
uint32_t serial_packet_buffer_get(uint16_t packet_len, serial_packet_t **pp_packet)
Returns a serial packet buffer of the requested length.