| STM32L - BlueNRG-1 BLE stack APIs, Events and Constants

- Main Page
- Modules
- Classes
- Files

Functions
ACI L2CAP events

ACI L2CAP events layer. More...

## Functions

| WEAK_FUNCTION (void aci_l2cap_connection_update_resp_event(uint16_t Connection_Handle, uint16_t Result))
| This event is generated when the master responds to the connection update request packet with a connection update response packet. More...
| WEAK_FUNCTION (void aci_l2cap_proc_timeout_event(uint16_t Connection_Handle, uint8_t Data_Length, uint8_t Data[]))
| This event is generated when the master does not respond to the connection update request packet with a connection update response packet or a command reject packet within 30 seconds. More...
| WEAK_FUNCTION (void aci_l2cap_connection_update_req_event(uint16_t Connection_Handle, uint8_t Identifier, uint16_t L2CAP_Length, uint16_t Interval_Min, uint16_t Interval_Max, uint16_t Slave_Latency, uint16_t Timeout_Multiplier))
| The event is given by the L2CAP layer when a connection update request is received from the slave. The upper layer which receives this event has to respond by sending a aci_l2cap_connection_parameter_update_resp command. More...
| WEAK_FUNCTION (void aci_l2cap_command_reject_event(uint16_t Connection_Handle, uint8_t Identifier, uint16_t Reason, uint8_t Data_Length, uint8_t Data[]))
| This event is generated when the master responds to the connection update request packet with a command reject packet. More...

## Detailed Description

ACI L2CAP events layer.

## Function Documentation

WEAK_FUNCTION | ( | void | aci_l2cap_connection_update_resp_eventuint16_t Connection_Handle, uint16_t Result | ) |

This event is generated when the master responds to the connection update request packet with a connection update response packet.

Parameters

  Connection_Handle | Connection handle referring to the COS Channel where the Disconnection has been received.
  Result |

Return values

  None |

WEAK_FUNCTION | ( | void | aci_l2cap_proc_timeout_eventuint16_t Connection_Handle, uint8_t Data_Length, uint8_t Data[] | ) |

This event is generated when the master does not respond to the connection update request packet with a connection update response packet or a command reject packet within 30 seconds.

Parameters

  Connection_Handle | Handle of the connection related to this L2CAP procedure.
  Data_Length | Length of following data
  Data | Not available

Return values

  None |

WEAK_FUNCTION | ( | void | aci_l2cap_connection_update_req_eventuint16_t Connection_Handle, uint8_t Identifier, uint16_t L2CAP_Length, uint16_t Interval_Min, uint16_t Interval_Max, uint16_t Slave_Latency, uint16_t Timeout_Multiplier | ) |

The event is given by the L2CAP layer when a connection update request is received from the slave. The upper layer which receives this event has to respond by sending a aci_l2cap_connection_parameter_update_resp command.

Parameters

  Connection_Handle | Handle of the connection related to this L2CAP procedure.
  Identifier | This is the identifier which associate the request to the response.
  L2CAP_Length | Length of the L2CAP connection update request.
  Interval_Min | N = 0xXXXX Minimum value for the connection event interval. This shall be less than or equal to Conn_Interval_Max. Range: 0x0006 to 0x0C80 Time = N * 1.25 msec Time Range: 7.5 msec to 4 seconds. 0x0000 - 0x0005 and 0x0C81 - 0xFFFF Reserved for future use
  Interval_Max | N = 0xXXXX Maximum value for the connection event interval. This shall be greater than or equal to Conn_Interval_Min. Range: 0x0006 to 0x0C80 Time = N * 1.25 msec Time Range: 7.5 msec to 4 seconds. 0x0000 - 0x0005 and 0x0C81 - 0xFFFF Reserved for future use
  Slave_Latency | Slave latency for the connection in number of connection events. Range: 0x0000 to 0x01F3
  Timeout_Multiplier | Defines connection timeout parameter in the following manner: Timeout Multiplier * 10ms.

Return values

  None |

WEAK_FUNCTION | ( | void | aci_l2cap_command_reject_eventuint16_t Connection_Handle, uint8_t Identifier, uint16_t Reason, uint8_t Data_Length, uint8_t Data[] | ) |

This event is generated when the master responds to the connection update request packet with a command reject packet.

Parameters

  Connection_Handle | Connection handle referring to the COS Channel where the Disconnection has been received.
  Identifier | This is the identifier which associate the request to the response.
  Reason | Reason
  Data_Length | Length of following data
  Data | Data field associated with Reason

Return values

  None |