nRF5 SDK v11.0.0
Table of Contents
DTM - ble_dtm_init
Function packet format
Frame format encoding of the ble_dtm_init packet.
The ble_dtm_init is encoded without an operation code byte. The packet contains only DTM UART configuration (TX pin, RX pin, and baud rate).
- DTM UART transmit pin - app_uart_stream_comm_params_t::tx_pin_no .
- DTM UART receive pin - app_uart_stream_comm_params_t::rx_pin_no .
- DTM UART baud rate - app_uart_stream_baud_rate_t .
The order of the encoding is:
| Length | Parameter | Value |
|---|---|---|
| 1 byte | UART TX | DTM UART transmit pin. |
| 1 byte | UART RX | DTM UART receive pin. |
| 1 byte | UART Baudrate | DTM UART baud rate. |
Figure 1: Encoding of ble_dtm_init.
Response packet format
Frame format encoding of the ble_dtm_init response packet:
| Length | Parameter | Value |
|---|---|---|
| 4 bytes | nRF Error Code | see ble_dtm_init |
Figure 2: Packet format for ble_dtm_init response.