BlueNRG-MS pack for STM32CubeMX: L2CAP functions

STM32CubeMX BlueNRG-MS

BlueNRG-MS pack for STM32CubeMX  V4.4.0
The BlueNRG-MS pack is an additional software for STM32CubeMX.

API for L2CAP layer. More...

Functions

tBleStatus aci_l2cap_connection_parameter_update_request (uint16_t conn_handle, uint16_t interval_min, uint16_t interval_max, uint16_t slave_latency, uint16_t timeout_multiplier)
 Send an L2CAP Connection Parameter Update request from the slave to the master. More...
 
tBleStatus aci_l2cap_connection_parameter_update_response_IDB05A1 (uint16_t conn_handle, uint16_t interval_min, uint16_t interval_max, uint16_t slave_latency, uint16_t timeout_multiplier, uint16_t min_ce_length, uint16_t max_ce_length, uint8_t id, uint8_t accept)
 Accept or reject a connection update. More...
 
tBleStatus aci_l2cap_connection_parameter_update_response_IDB04A1 (uint16_t conn_handle, uint16_t interval_min, uint16_t interval_max, uint16_t slave_latency, uint16_t timeout_multiplier, uint8_t id, uint8_t accept)
 Accept or reject a connection update. More...
 

Detailed Description

API for L2CAP layer.

Function Documentation

◆ aci_l2cap_connection_parameter_update_request()

tBleStatus aci_l2cap_connection_parameter_update_request ( uint16_t  conn_handle,
uint16_t  interval_min,
uint16_t  interval_max,
uint16_t  slave_latency,
uint16_t  timeout_multiplier 
)

Send an L2CAP Connection Parameter Update request from the slave to the master.

Note
An EVT_BLUE_L2CAP_CONN_UPD_RESP event will be raised when the master will respond to the request (accepts or rejects).
Parameters
conn_handleConnection handle on which the connection parameter update request has to be sent.
interval_minDefines minimum value for the connection event interval in the following manner: connIntervalMin = interval_min x 1.25ms
interval_maxDefines maximum value for the connection event interval in the following manner: connIntervalMax = interval_max x 1.25ms
slave_latencyDefines the slave latency parameter (number of connection events that can be skipped).
timeout_multiplierDefines connection timeout parameter in the following manner: timeout_multiplier x 10ms.
Returns
Value indicating success or error code.

◆ aci_l2cap_connection_parameter_update_response_IDB04A1()

tBleStatus aci_l2cap_connection_parameter_update_response_IDB04A1 ( uint16_t  conn_handle,
uint16_t  interval_min,
uint16_t  interval_max,
uint16_t  slave_latency,
uint16_t  timeout_multiplier,
uint8_t  id,
uint8_t  accept 
)

Accept or reject a connection update.

Note
This command should be sent in response to a EVT_BLUE_L2CAP_CONN_UPD_REQ event from the controller. The accept parameter has to be set if the connection parameters given in the event are acceptable.
Parameters
conn_handleHandle received in EVT_BLUE_L2CAP_CONN_UPD_REQ event.
interval_minThe connection interval parameter as received in the l2cap connection update request event
interval_maxThe maximum connection interval parameter as received in the l2cap connection update request event.
slave_latencyThe slave latency parameter as received in the l2cap connection update request event.
timeout_multiplierThe supervision connection timeout parameter as received in the l2cap connection update request event.
idIdentifier received in EVT_BLUE_L2CAP_CONN_UPD_REQ event.
accept
  • 0x00: The connection update parameters are not acceptable.
  • 0x01: The connection update parameters are acceptable.
Returns
Value indicating success or error code.

◆ aci_l2cap_connection_parameter_update_response_IDB05A1()

tBleStatus aci_l2cap_connection_parameter_update_response_IDB05A1 ( uint16_t  conn_handle,
uint16_t  interval_min,
uint16_t  interval_max,
uint16_t  slave_latency,
uint16_t  timeout_multiplier,
uint16_t  min_ce_length,
uint16_t  max_ce_length,
uint8_t  id,
uint8_t  accept 
)

Accept or reject a connection update.

Note
This command should be sent in response to a EVT_BLUE_L2CAP_CONN_UPD_REQ event from the controller. The accept parameter has to be set if the connection parameters given in the event are acceptable.
Parameters
conn_handleHandle received in EVT_BLUE_L2CAP_CONN_UPD_REQ event.
interval_minThe connection interval parameter as received in the l2cap connection update request event
interval_maxThe maximum connection interval parameter as received in the l2cap connection update request event.
slave_latencyThe slave latency parameter as received in the l2cap connection update request event.
timeout_multiplierThe supervision connection timeout parameter as received in the l2cap connection update request event.
min_ce_lengthMinimum length of connection event needed for the LE connection.
Range: 0x0000 - 0xFFFF
Time = N x 0.625 msec.
max_ce_lengthMaximum length of connection event needed for the LE connection.
Range: 0x0000 - 0xFFFF
Time = N x 0.625 msec.
idIdentifier received in EVT_BLUE_L2CAP_CONN_UPD_REQ event.
accept
  • 0x00: The connection update parameters are not acceptable.
  • 0x01: The connection update parameters are acceptable.
Returns
Value indicating success or error code.
Generated on Mon Apr 15 2019 18:10:40 for BlueNRG-MS pack for STM32CubeMX by   doxygen 1.8.13