DTM Application command request encoders and command response decoders.
More...
DTM Application command request encoders and command response decoders.
Function to initializing DTM mode.
- Parameters
-
[in] | p_uart_comm_params | Pointer to the DTM UART configuration parameters. |
- Return values
-
NRF_SUCCESS | Encoding success. |
NRF_ERROR_NULL | Encoding failure. NULL pointer supplied. |
Encodes dtm_init command request.
- See Also
- Function packet format for packet format, ble_dtm_init_rsp_dec for command response decoder.
- Parameters
-
[in] | p_uart_comm_params | Pointer to UART configuration parameters. |
[in] | p_buf | Pointer to buffer where encoded data command will be returned. |
[in,out] | p_buf_len | in: Size of p_buf buffer. out: Length of encoded command packet. |
- Return values
-
NRF_SUCCESS | Encoding success. |
NRF_ERROR_NULL | Encoding failure. NULL pointer supplied. |
NRF_ERROR_INVALID_LENGTH | Encoding failure. Incorrect buffer length. |
uint32_t ble_dtm_init_rsp_dec |
( |
uint8_t const *const |
p_buf, |
|
|
uint32_t |
packet_len, |
|
|
uint32_t *const |
p_result_code |
|
) |
| |
Decodes response dtm_init_rsp command.
- See Also
- Function packet format for packet format, ble_dtm_init_req_enc for command request encoder.
- Parameters
-
[in] | p_buf | Pointer to beginning of command response packet. |
[in] | packet_len | Length (in bytes) of response packet. |
[out] | p_result_code | Command result code. |
- Return values
-
NRF_SUCCESS | Decoding success. |
NRF_ERROR_NULL | Decoding failure. NULL pointer supplied. |
NRF_ERROR_INVALID_LENGTH | Decoding failure. Incorrect buffer length. |