InPlay API
BLE L2CAP

BLE L2CAP. More...

Data Structures

struct  ble_lecb_connect_t
 LE credit based connection request. More...
 
struct  ble_lecb_connect_ind_t
 LE credit based connection indication. More...
 
struct  ble_lecb_connect_cfm_t
 LE credit based connection request confirmation. More...
 

Functions

int in_ble_lecb_connect (void *hdl, int conidx, ble_lecb_connect_t *p_conx, ble_lecb_connect_ind_t *p_ind, comp_cb callback)
 LE credit based connection request. More...
 
int in_ble_lecb_connect_req_cfm (void *hdl, uint8_t conidx, ble_lecb_connect_cfm_t *p_cfm)
 LE credit based connection request confirmation. More...
 
int in_ble_lecb_disconnect (void *hdl, int conidx, int local_cid, comp_cb callback)
 LE credit based disconnect request. More...
 
int in_ble_lecb_add_credit (void *hdl, int conidx, int local_cid, int credit, comp_cb callback)
 LE credit based credit addition. More...
 
int in_ble_lecb_sdu_send (void *hdl, int conidx, int local_cid, uint8_t *data, int data_length, comp_cb callback)
 LE Send data over an LE Credit Based Connection. More...
 

Detailed Description

BLE L2CAP.

Function Documentation

◆ in_ble_lecb_add_credit()

int in_ble_lecb_add_credit ( void *  hdl,
int  conidx,
int  local_cid,
int  credit,
comp_cb  callback 
)

LE credit based credit addition.

Parameters
[in]conidxConnection index
[in]local_cidLocal channel ID
[in]creditCredit to add
Returns
IN_BLE_ERR_NO_ERROR if successful, otherwise failed.
See also
enum in_ble_err_t

◆ in_ble_lecb_connect()

int in_ble_lecb_connect ( void *  hdl,
int  conidx,
ble_lecb_connect_t p_conx,
ble_lecb_connect_ind_t p_ind,
comp_cb  callback 
)

LE credit based connection request.

Parameters
[in]conidxConnection index
[in]p_conxPointer to connect request structure
[out]p_indPointer to connect indicator
Returns
IN_BLE_ERR_NO_ERROR if successful, otherwise failed.
See also
enum in_ble_err_t

◆ in_ble_lecb_connect_req_cfm()

int in_ble_lecb_connect_req_cfm ( void *  hdl,
uint8_t  conidx,
ble_lecb_connect_cfm_t p_cfm 
)

LE credit based connection request confirmation.

Parameters
[in]conidxConnection index
[in]p_cfmPointer to confirm structure
Returns
IN_BLE_ERR_NO_ERROR if successful, otherwise failed.
See also
enum in_ble_err_t

◆ in_ble_lecb_disconnect()

int in_ble_lecb_disconnect ( void *  hdl,
int  conidx,
int  local_cid,
comp_cb  callback 
)

LE credit based disconnect request.

Parameters
[in]conidxConnection index
[in]local_cidLocal channel ID
Returns
IN_BLE_ERR_NO_ERROR if successful, otherwise failed.
See also
enum in_ble_err_t

◆ in_ble_lecb_sdu_send()

int in_ble_lecb_sdu_send ( void *  hdl,
int  conidx,
int  local_cid,
uint8_t *  data,
int  data_length,
comp_cb  callback 
)

LE Send data over an LE Credit Based Connection.

Parameters
[in]conidxConnection index
[in]local_cidLocal channel ID
[in]dataSend data
[in]data_lengthSend data length
Returns
IN_BLE_ERR_NO_ERROR if successful, otherwise failed.
See also
enum in_ble_err_t