![]() |
nRF5 SDK
v15.3.0
|
Choose documentation: | nRF5 SDK | S112 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API | S312 SoftDevice API | S332 SoftDevice API | S340 SoftDevice API |
Modules | |
Middleware command handlers | |
GAP Middleware command handlers | |
GATTC Middleware command handlers | |
GATTS Middleware command handlers | |
L2CAP Middleware command handlers | |
Functions | |
uint32_t | conn_mw_handler (uint8_t const *const p_rx_buf, uint32_t rx_buf_len, uint8_t *const p_tx_buf, uint32_t *const p_tx_buf_len) |
Connectivity Middleware dispatcher function. More... | |
uint32_t conn_mw_handler | ( | uint8_t const *const | p_rx_buf, |
uint32_t | rx_buf_len, | ||
uint8_t *const | p_tx_buf, | ||
uint32_t *const | p_tx_buf_len | ||
) |
Connectivity Middleware dispatcher function.
It handles decoding of the opcode from the RX buffer and based on the opcode, it searches for registered handler. Handler is called once it is found.
[in] | p_rx_buf | Pointer to input buffer. |
[in] | rx_buf_len | Size of p_rx_buf . |
[out] | p_tx_buf | Pointer to output buffer. |
[in,out] | p_tx_buf_len | in: size of p_tx_buf buffer. out: Length of valid data in p_tx_buf . |
NRF_SUCCESS | Handler success. |
NRF_ERROR_NULL | Handler failure. NULL pointer supplied. |
NRF_ERROR_INVALID_LENGTH | Handler failure. Incorrect buffer length. |
NRF_ERROR_INVALID_PARAM | Handler failure. Invalid operation type. |
NRF_ERROR_NOT_SUPPORTED | Handler failure. Opcode not supported. |