Connectivity event encoders.
More...
Connectivity event encoders.
uint32_t ble_evt_tx_complete_enc |
( |
ble_evt_t const *const |
p_event, |
|
|
uint32_t |
event_len, |
|
|
uint8_t *const |
p_buf, |
|
|
uint32_t *const |
p_buf_len |
|
) |
| |
Encodes ble_evt_tx_complete event.
- See Also
- 0x01 - BLE_EVT_TX_COMPLETE for packet format.
- Parameters
-
[in] | p_event | Pointer to the ble_evt_t buffer that shall be encoded. |
[in] | event_len | Size (in bytes) of p_event buffer. |
[out] | p_buf | Pointer to the beginning of a buffer for encoded event packet. |
[in,out] | p_buf_len | in: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_buf . |
- Return values
-
NRF_SUCCESS | Encoding success. |
NRF_ERROR_NULL | Encoding failure. NULL pointer supplied. |
NRF_ERROR_INVALID_LENGTH | Encoding failure. Incorrect buffer length. |