Go to the documentation of this file.
49 #ifndef __BLE_L2CAP_H__
50 #define __BLE_L2CAP_H__
uint16_t peer_added_credits
The parameter of LE credit based connection request packet sending.
L2cap Connect Request event for BLE_L2CAP_EVT_CONN_REQ.
LE flow control credit packet parameter.
L2cap Credits Add Completed event for BLE_GATTC_EVT_NTF_IND.
@ BLE_L2CAP_REMOTE_USER_TERM_CON
uint16_t ble_l2cap_lecb_psm_register(uint16_t le_psm)
Register PSM.
ble_l2cap_evt_disconnect_t disconnected
BLE L2cap event structure.
uint16_t ble_l2cap_lecb_sdu_send(uint8_t conn_idx, const ble_l2cap_lecb_sdu_t *p_sdu)
Send an SDU packet to the peer device.
uint16_t ble_l2cap_lecb_disconnect(uint8_t conn_idx, uint16_t local_cid)
Disconnect the LE credit based connection.
Define the chip configuration.
ble_l2cap_evt_sdu_send_t sdu_send
@ BLE_L2CAP_LOCAL_USER_TERM_CON
uint16_t ble_l2cap_lecb_conn_create(uint8_t conn_idx, const ble_l2cap_lecb_conn_req_t *p_conn_req)
Create the LE credit based connection.
ble_l2cap_evt_add_credits_cplt_t add_credits_cplt
ble_l2cap_evt_sdu_recv_t sdu_recv
File that contains error codes.
L2cap SDU Send event for BLE_L2CAP_EVT_SDU_SEND.
ble_l2cap_lecb_disconn_reason_t
LE credit based disconnection reasons.
L2cap Credits Add Indicate event for BLE_L2CAP_EVT_ADD_CREDITS_IND.
uint16_t ble_l2cap_lecb_conn_cfm(uint8_t conn_idx, const ble_l2cap_lecb_cfm_conn_t *p_cfm_conn)
Confirm the LE credit based connection after receiving the connection request packet from the peer de...
ble_l2cap_evt_add_credits_ind_t add_credits_ind
L2cap Connected Indicate event for BLE_L2CAP_EVT_CONN_IND.
ble_l2cap_evt_conn_req_t conn_req
ble_l2cap_evt_conn_ind_t conn_ind
uint16_t ble_l2cap_lecb_credits_add(uint8_t conn_idx, const ble_l2cap_lecb_add_credits_t *p_add_credits)
Send a LE Flow Control Credit packet when the device is capable of receiving additional LE-frames (fo...
L2cap SDU Receive event for BLE_L2CAP_EVT_SDU_RECV.
LE credit based connection confirm parameter.
L2cap disconnect event for BLE_L2CAP_EVT_DISCONNECTED.
ble_l2cap_lecb_disconn_reason_t reason