nRF51 SDK - S130 SoftDevice
|
Decoder for serialized packets from an Application Chip. More...
Functions | |
uint32_t | ser_conn_received_pkt_process (ser_hal_transport_evt_rx_pkt_received_params_t *p_rx_pkt_params) |
A function for dispatching packets from an Application Chip to an appropriate decoder. More... | |
Decoder for serialized packets from an Application Chip.
This file contains declaration of common function used for processing packets (packets dispatcher) received by the transport layer.
uint32_t ser_conn_received_pkt_process | ( | ser_hal_transport_evt_rx_pkt_received_params_t * | p_rx_pkt_params | ) |
A function for dispatching packets from an Application Chip to an appropriate decoder.
The function is called to process received packets from a transport layer. The function analyzes packet type and calls appropriate command decoder which among other things processes command and sends a response. Then a received packet is freed.
[in] | p_rx_pkt_params | A pointer to a transport layer event of type ser_hal_transport_evt_rx_pkt_received_params_t. |
NRF_SUCCESS | Operation success. |
NRF_ERROR_NULL | Operation failure. NULL pointer supplied. |
NRF_ERROR_INTERNAL | Operation failure. Internal error ocurred. |