nRF51 SDK - S120 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
BLE S120 Events

0x01 - BLE_EVT_TX_COMPLETE

Event encoding

Frame format encoding of the BLE_EVT_TX_COMPLETE packet.

Event ID = 0x01 for BLE_EVT_TX_COMPLETE

All BLE Events, ble_evt_t, are encoded with the header ble_evt_hdr_t first, containing only the 'Event ID', followed by the event. The 'Event Length' will not be encoded as the size of the event could be of different sizes depending on decoder architecture.

The event contains a connection handle, and for the BLE TX complete, the ble_evt_tx_complete_t is encoded after connection handle as seen in Figure 1.

The order of the encoding is:

Length Parameter Value
2 bytes Connection Handle see ble_common_evt_t::conn_handle
1 byte Count see ble_evt_tx_complete_t


Packet layout

event_tx_complete.png
Figure 1: Encoding of BLE_EVT_TX_COMPLETE event.