nRF51 SDK - S310 SoftDevice
|
Definitions and prototypes for the L2CAP interface. More...
Modules | |
Message Sequence Charts | |
Defines | |
Data Structures | |
struct | ble_l2cap_header_t |
Packet header format for L2CAP transmission. More... | |
struct | ble_l2cap_evt_rx_t |
L2CAP Received packet event report. More... | |
struct | ble_l2cap_evt_t |
L2CAP event callback event structure. More... | |
Enumerations | |
enum | BLE_L2CAP_SVCS { SD_BLE_L2CAP_CID_REGISTER = 0xB0, SD_BLE_L2CAP_CID_UNREGISTER, SD_BLE_L2CAP_TX } |
L2CAP API SVC numbers. More... | |
enum | BLE_L2CAP_EVTS { BLE_L2CAP_EVT_RX = 0x70 } |
L2CAP Event IDs. More... | |
Functions | |
uint32_t | sd_ble_l2cap_cid_register (uint16_t cid) |
Register a CID with L2CAP. More... | |
uint32_t | sd_ble_l2cap_cid_unregister (uint16_t cid) |
Unregister a CID with L2CAP. More... | |
uint32_t | sd_ble_l2cap_tx (uint16_t conn_handle, ble_l2cap_header_t const *const p_header, uint8_t const *const p_data) |
Transmit an L2CAP packet. More... | |
Definitions and prototypes for the L2CAP interface.
enum BLE_L2CAP_EVTS |
enum BLE_L2CAP_SVCS |
uint32_t sd_ble_l2cap_cid_register | ( | uint16_t | cid | ) |
Register a CID with L2CAP.
This registers a higher protocol layer with the L2CAP multiplexer, and is requried prior to all operations on the CID.
[in] | cid | L2CAP CID. |
uint32_t sd_ble_l2cap_cid_unregister | ( | uint16_t | cid | ) |
Unregister a CID with L2CAP.
This unregisters a previously registerd higher protocol layer with the L2CAP multiplexer.
[in] | cid | L2CAP CID. |
uint32_t sd_ble_l2cap_tx | ( | uint16_t | conn_handle, |
ble_l2cap_header_t const *const | p_header, | ||
uint8_t const *const | p_data | ||
) |
Transmit an L2CAP packet.
[in] | conn_handle | Connection Handle. |
[in] | p_header | Pointer to a packet header containing length and CID. |
[in] | p_data | Pointer to the data to be transmitted. |