DTM Connectivity command request decoder and command response encoder.
More...
DTM Connectivity command request decoder and command response encoder.
Decodes ble_dtm_init command request.
- See Also
- Function packet format for packet format, ble_dtm_init_rsp_enc for response encoding.
- Parameters
-
[in] | p_buf | Pointer to beginning of command request packet. |
[in] | packet_len | Length (in bytes) of request packet. |
[in] | p_comm_params | Pointer to the structure with DTM Uart configuration. |
- Return values
-
NRF_SUCCESS | Decoding success. |
NRF_ERROR_NULL | Decoding failure. NULL pointer supplied. |
NRF_ERROR_INVALID_LENGTH | Decoding failure. Incorrect buffer length. |
uint32_t ble_dtm_init_rsp_enc |
( |
uint32_t |
return_code, |
|
|
uint8_t *const |
p_buf, |
|
|
uint32_t *const |
p_buf_len |
|
) |
| |
Encodes ble_dtm_init command response.
- See Also
- Function packet format for packet format. ble_dtm_init_req_dec for request decoding.
- Parameters
-
[in] | return_code | Return code indicating if command was successful or not. |
[out] | p_buf | Pointer to buffer where encoded data command response will be returned. |
[in,out] | p_buf_len | in: size of p_buf buffer. out: Length of encoded command response packet. |
- Return values
-
NRF_SUCCESS | Encoding success. |
NRF_ERROR_NULL | Encoding failure. NULL pointer supplied. |
NRF_ERROR_INVALID_LENGTH | Encoding failure. Incorrect buffer length. |