Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
Event Code

Detailed Description

Enumerations

enum  e_r_ble_l2cap_cf_evt_t {
  BLE_L2CAP_EVENT_CF_CONN_CNF = 0x5001,
  BLE_L2CAP_EVENT_CF_CONN_IND = 0x5002,
  BLE_L2CAP_EVENT_CF_DISCONN_CNF = 0x5003,
  BLE_L2CAP_EVENT_CF_DISCONN_IND = 0x5004,
  BLE_L2CAP_EVENT_CF_RX_DATA_IND = 0x5005,
  BLE_L2CAP_EVENT_CF_LOW_RX_CRD_IND = 0x5006,
  BLE_L2CAP_EVENT_CF_TX_CRD_IND = 0x5007,
  BLE_L2CAP_EVENT_CF_TX_DATA_CNF = 0x5008,
  BLE_L2CAP_EVENT_CMD_REJ = 0x5009
}
 L2CAP Event Identifier. More...
 

Enumeration Type Documentation

◆ e_r_ble_l2cap_cf_evt_t

L2CAP Event Identifier.

Enumerator
BLE_L2CAP_EVENT_CF_CONN_CNF 

After the connection request for L2CAP CBFC Channel has been sent with R_BLE_L2CAP_ReqCfConn(), when the L2CAP CBFC Channel connection response has been received, BLE_L2CAP_EVENT_CF_CONN_CNF event occurs.

Event Code: 0x5001

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_RSP_TIMEOUT(0x0011) L2CAP Command timeout.
BLE_ERR_L2CAP_PSM_NOT_SUPPORTED(0x4002) PSM specified by R_BLE_L2CAP_ReqCfConn() is not supported.
BLE_ERR_L2CAP_NO_RESOURCE(0x4004) No resource for connection.
BLE_ERR_L2CAP_INSUF_AUTHEN(0x4005) Insufficient authentication.
BLE_ERR_L2CAP_INSUF_AUTHOR(0x4006) Insufficient authorization.
BLE_ERR_L2CAP_INSUF_ENC_KEY_SIZE(0x4007) Insufficient encryption key size.
BLE_ERR_L2CAP_REFUSE_INSUF_ENC(0x4008) Insufficient encryption.
BLE_ERR_L2CAP_REFUSE_INVALID_SCID(0x4009) Invalid Source CID.
BLE_ERR_L2CAP_REFUSE_SCID_ALREADY_ALLOC(0x400A) Source CID already allocated.
BLE_ERR_L2CAP_REFUSE_UNACCEPTABLE_PARAM(0x400B) Unacceptable parameters.

Event Data:

st_ble_l2cap_cf_conn_evt_t

BLE_L2CAP_EVENT_CF_CONN_IND 

When a connection request for L2CPA CBFC Channel has been received from a remote device, BLE_L2CAP_EVENT_CF_CONN_IND event occurs.

Event Code: 0x5002

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_NOT_FOUND(0x000D) CF connection request has not been received or lcid not found.
BLE_ERR_L2CAP_PSM_NOT_SUPPORTED(0x4002) PSM specified by R_BLE_L2CAP_ReqCfConn() is not supported.

Event Data:

st_ble_l2cap_cf_conn_evt_t

BLE_L2CAP_EVENT_CF_DISCONN_CNF 

After local device has sent a disconnection request for L2CAP CBFC Channel by R_BLE_L2CAP_DisconnectCf(), when the local device has received the response, BLE_L2CAP_EVENT_CF_DISCONN_CNF event occurs.

Event Code: 0x5003

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_l2cap_cf_disconn_evt_t

BLE_L2CAP_EVENT_CF_DISCONN_IND 

When local device has received a disconnection request for L2CAP CBFC Channel from the remote device, BLE_L2CAP_EVENT_CF_DISCONN_IND event occurs.
Host stack automatically replies the to the disconnection request.

Event Code: 0x5004

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_l2cap_cf_disconn_evt_t

BLE_L2CAP_EVENT_CF_RX_DATA_IND 

When local device has received data on L2CAP CBFC Channel, BLE_L2CAP_EVENT_CF_RX_DATA_IND event occurs.

Event Code: 0x5005

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_l2cap_cf_data_evt_t

BLE_L2CAP_EVENT_CF_LOW_RX_CRD_IND 

When the credit of the L2CAP CBFC Channel has reached the Low Water Mark, BLE_L2CAP_EVENT_CF_LOW_RX_CRD_IND event occurs.

Event Code: 0x5006

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_l2cap_cf_credit_evt_t

BLE_L2CAP_EVENT_CF_TX_CRD_IND 

When local device has received credit from a remote device, BLE_L2CAP_EVENT_CF_TX_CRD_IND event occurs.

Event Code: 0x5007

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_l2cap_cf_credit_evt_t

BLE_L2CAP_EVENT_CF_TX_DATA_CNF 

When the data transmission has been completed from host stack to Controller, BLE_L2CAP_EVENT_CF_TX_DATA_CNF event occurs.

Event Code: 0x5008

result:

BLE_SUCCESS(0x0000) Success
BLE_ERR_DISCONNECTED(0x000F) While transmitting data, L2CAP CBFC Channel has been disconnected.

Event Data:

st_ble_l2cap_cf_data_evt_t

BLE_L2CAP_EVENT_CMD_REJ 

When local device has received Command Reject PDU, BLE_L2CAP_EVENT_CMD_REJ event occurs.

Event Code: 0x5009

result:

BLE_SUCCESS(0x0000) Success

Event Data:

st_ble_l2cap_rej_evt_t