| Airoha M0 BLE API 1.0.5.4

Data Structures | Typedefs | Enumerations | Functions
ble_l2cap.h

## Data Structures
struct | cid_parm
| Parameter for fix CID event. More...

## Typedefs
typedef void(* | cid_callback) (uint8_t idx, cid_event evt, cid_parm parm)
| Fix CID event callback function. More...

## Enumerations
enum | cid_event { cid_event_l2cap_pdu = 0, cid_event_link_connected, cid_event_link_disconnected }
| fix CID event id More...

## Functions
bool | BLE_l2cap_cid_register (uint16_t cid, cid_callback cb)
| Register a fix CID. More...
void | BLE_l2cap_cid_unregister (uint16_t cid)
| Unregister a fix CID. More...

## Detailed Description

### ble_l2cap.h

## Typedef Documentation

## ◆ cid_callback

typedef void(* cid_callback) (uint8_t idx, cid_event evt, cid_parm parm)

Fix CID event callback function.

Parameters

  idx | link index
  evt | CID event
  parm | CID event parameter.

## Enumeration Type Documentation

## ◆ cid_event

enum cid_event

fix CID event id

Enumerator
cid_event_l2cap_pdu | PDU incomming.
cid_event_link_connected | ACL Link was connected.
cid_event_link_disconnected | ACL Link was disconnected.

## Function Documentation

## ◆ BLE_l2cap_cid_register()

bool BLE_l2cap_cid_register | ( | uint16_t | cid,
|  | cid_callback | cb
| ) |  |

Register a fix CID.

Parameters

  cid | Fix channel ID
  cb | CID event callback function

Returns
  true if success.

## ◆ BLE_l2cap_cid_unregister()

void BLE_l2cap_cid_unregister | ( | uint16_t | cid | ) |

Unregister a fix CID.

Parameters

  cid | Fix channel ID