Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
L2CAP API

Functions

at_ble_status_t at_ble_l2cap_cid_register (at_ble_handle_t conn_handle, uint16_t cid)
 Registers a custom CID to received data from, when the L2CAP received data on the registered CID an AT_BLE_L2CAP_RX event will be reported. More...
 
at_ble_status_t at_ble_l2cap_cid_unregister (at_ble_handle_t conn_handle, uint16_t cid)
 Unregister a previously registered custom CID. More...
 
at_ble_status_t at_ble_l2cap_tx (at_ble_handle_t conn_handle, uint16_t cid, uint8_t *data, uint16_t len)
 Sends a custom L2CAP message using the given CID. More...
 

at_ble_status_t at_ble_l2cap_cid_register ( at_ble_handle_t  conn_handle,
uint16_t  cid 
)

Registers a custom CID to received data from, when the L2CAP received data on the registered CID an AT_BLE_L2CAP_RX event will be reported.

Parameters
[in]conn_handleHandle of the connection
[in]cidL2CAP CID to register
Warning
Not Supported
Returns
AT_BLE_SUCCESS Operation completed successfully
AT_BLE_FAILURE Generic error
at_ble_status_t at_ble_l2cap_cid_unregister ( at_ble_handle_t  conn_handle,
uint16_t  cid 
)

Unregister a previously registered custom CID.

Parameters
[in]conn_handleHandle of the connection
[in]cidL2CAP CID to unregister
Warning
Not Supported
Returns
AT_BLE_SUCCESS Operation completed successfully
AT_BLE_FAILURE Generic error
at_ble_status_t at_ble_l2cap_tx ( at_ble_handle_t  conn_handle,
uint16_t  cid,
uint8_t *  data,
uint16_t  len 
)

Sends a custom L2CAP message using the given CID.

Parameters
[in]conn_handleHandle of the connection
[in]cidL2CAP CID to use when sending the data
[in]dataData to send
[in]lenLength of data, in bytes
Warning
Not Supported
Returns
AT_BLE_SUCCESS Operation completed successfully
AT_BLE_FAILURE Generic error