DTM Connectivity command request decoder and command response encoder. More...
Functions |
|
| uint32_t | ble_dtm_init_req_dec (uint8_t const *const p_buf, uint16_t packet_len, app_uart_stream_comm_params_t *p_comm_params) |
|
Decodes
ble_dtm_init
command request.
More...
|
|
| 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.
More...
|
|
Detailed Description
DTM Connectivity command request decoder and command response encoder.
Function Documentation
| uint32_t ble_dtm_init_req_dec | ( | uint8_t const *const | p_buf , |
| uint16_t | packet_len , | ||
| app_uart_stream_comm_params_t * | p_comm_params | ||
| ) |
Decodes ble_dtm_init command request.
- See Also
- General rules for encoding data 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
- General rules for encoding data 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 ofp_bufbuffer.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.