nRF51 SDK - S120 SoftDevice
|
Frame format encoding of the sd_ble_l2cap_cid_register packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0xB0, see BLE_L2CAP_SVCS |
2 bytes | CID | L2CAP CID |
Frame format encoding of the sd_ble_l2cap_cid_register response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0xB0, see BLE_L2CAP_SVCS |
4 bytes | nRF Error Code | see sd_ble_l2cap_cid_register |
Frame format encoding of the sd_ble_l2cap_cid_unregister packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0xB1, see BLE_L2CAP_SVCS |
2 bytes | CID | L2CAP CID |
Frame format encoding of the sd_ble_l2cap_cid_unregister response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0xB1, see BLE_L2CAP_SVCS |
4 bytes | nRF Error Code | see sd_ble_l2cap_cid_unregister |
Frame format encoding of the sd_ble_l2cap_tx packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0xB2, see BLE_L2CAP_SVCS |
2 bytes | Connection Handle | Handle Value |
1 byte | L2CAP Header present | 0x00 Field not present, 0x01 Field present |
3 bytes | Conditional: L2CAP Header | see ble_l2cap_header_t |
1 byte | Data present | 0x00 Field not present, 0x01 Field present |
0...n bytes | Conditional: Data | Data to be transmitted |
As can also be seen inside Figure 1 the 3 bytes inside ble_l2cap_header_t are encoded as:
Length | Parameter | Value |
---|---|---|
2 bytes | Length | see ble_l2cap_header_t::len |
2 bytes | CID | see ble_l2cap_header_t::cid |
Frame format encoding of the sd_ble_l2cap_tx response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0xB2, see BLE_L2CAP_SVCS |
4 bytes | nRF Error Code | see sd_ble_l2cap_tx |