Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
st_ble_l2cap_conn_rsp_param_t Struct Reference

L2CAP CBFC Channel connection response parameters. More...

Data Fields

uint16_t lcid
 CID identifying the L2CAP CBFC Channel on local device. The valid range is 0x40-0x40 + BLE_L2CAP_MAX_CBFC_PSM - 1. More...
 
uint16_t response
 The response to the connection request. Select one of the following. More...
 
uint16_t mtu
 MTU(byte) of packet that L2CAP CBFC Channel on local device can receive. More...
 
uint16_t mps
 MPS(byte) of packet that L2CAP CBFC Channel on local device can receive. More...
 
uint16_t credit
 The number of LE-Frame that L2CAP CBFC Channel on local device can receive. More...
 

Detailed Description

L2CAP CBFC Channel connection response parameters.

Field Documentation

◆ lcid

uint16_t st_ble_l2cap_conn_rsp_param_t::lcid

CID identifying the L2CAP CBFC Channel on local device. The valid range is 0x40-0x40 + BLE_L2CAP_MAX_CBFC_PSM - 1.

◆ response

uint16_t st_ble_l2cap_conn_rsp_param_t::response

The response to the connection request. Select one of the following.

macro description
BLE_L2CAP_CF_RSP_SUCCESS(0x0000) Notify the remote device that the connection can be established.
BLE_L2CAP_CF_RSP_RFSD_INSF_AUTH(0x0005) Notify the remote device that the connection can not be established because of insufficient authentication.
BLE_L2CAP_CF_RSP_RFSD_INSF_AUTRZ(0x0006) Notify the remote device that the connection can not be established because of insufficient Authorization.
BLE_L2CAP_CF_RSP_RFSD_INSF_ENC_KEY(0x0007) Notify the remote device that the connection can not be established because of Encryption Key Size.
BLE_L2CAP_CF_RSP_RFSD_INSF_ENC(0x0008) Notify the remote device that the connection can not be established because of Encryption.
BLE_L2CAP_CF_RSP_RFSD_UNAC_PARAM(0x000B) Notify the remote device that the connection can not be established because the parameters is unacceptable to local device.

◆ mtu

uint16_t st_ble_l2cap_conn_rsp_param_t::mtu

MTU(byte) of packet that L2CAP CBFC Channel on local device can receive.

◆ mps

uint16_t st_ble_l2cap_conn_rsp_param_t::mps

MPS(byte) of packet that L2CAP CBFC Channel on local device can receive.

◆ credit

uint16_t st_ble_l2cap_conn_rsp_param_t::credit

The number of LE-Frame that L2CAP CBFC Channel on local device can receive.