ble_l2cap_conn_cfg_t

S332 SoftDevice v5.0.0 API

BLE L2CAP connection configuration parameters, set with sd_ble_cfg_set . More...

#include <ble_l2cap.h>

Data Fields

uint16_t rx_mps
uint16_t tx_mps
uint8_t rx_queue_size
uint8_t tx_queue_size
uint8_t ch_count

Detailed Description

BLE L2CAP connection configuration parameters, set with sd_ble_cfg_set .

Note
These parameters are set per connection, so all L2CAP channels created on this connection will have the same parameters.
Return values
NRF_ERROR_INVALID_PARAM One or more of the following is true:
NRF_ERROR_NO_MEM rx_mps or tx_mps is set too high.

Field Documentation

uint8_t ble_l2cap_conn_cfg_t::ch_count
      Number of L2CAP channels the application can create per connection

with this configuration. The default value is zero, the maximum value is BLE_L2CAP_CH_COUNT_MAX .

Note
if this parameter is set to zero, all other parameters in ble_l2cap_conn_cfg_t are ignored.
uint16_t ble_l2cap_conn_cfg_t::rx_mps
        The maximum L2CAP PDU payload size, in bytes, that L2CAP shall

be able to receive on L2CAP channels on connections with this configuration. The minimum value is BLE_L2CAP_MPS_MIN .

uint8_t ble_l2cap_conn_cfg_t::rx_queue_size
 Number of SDU data buffers that can be queued for reception per

L2CAP channel. The minimum value is one.

uint16_t ble_l2cap_conn_cfg_t::tx_mps
        The maximum L2CAP PDU payload size, in bytes, that L2CAP shall

be able to transmit on L2CAP channels on connections with this configuration. The minimum value is BLE_L2CAP_MPS_MIN .

uint8_t ble_l2cap_conn_cfg_t::tx_queue_size
 Number of SDU data buffers that can be queued for transmission

per L2CAP channel. The minimum value is one.