Filippo Casamassima / Nucleo_blueNRG

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

L2CAP functions

L2CAP functions

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.
tBleStatus aci_l2cap_connection_parameter_update_response (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.

Detailed Description

API for L2CAP layer.


Function Documentation

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.

Definition at line 29 of file bluenrg_l2cap_aci.c.

tBleStatus aci_l2cap_connection_parameter_update_response ( 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_min
interval_max
slave_latency
timeout_multiplier
id
accept
Returns:

Definition at line 58 of file bluenrg_l2cap_aci.c.