nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches
Connection state

Module for storing data on Bluetooth LE connections. More...

Topics

 Bluetooth LE connection state functions
 

Data Structures

struct  ble_conn_state_conn_handle_list
 Type used to present a list of conn_handles. More...
 

Macros

#define BLE_CONN_STATE_MAX_CONNECTIONS   BLE_GAP_ROLE_COUNT_COMBINED_MAX
 
#define BLE_CONN_STATE_USER_FLAG_INVALID   CONFIG_BLE_CONN_STATE_USER_FLAG_COUNT
 

Typedefs

typedef void(* ble_conn_state_user_function_t) (uint16_t conn_handle, void *ctx)
 Function to be called when a flag ID is set.
 

Enumerations

enum  ble_conn_state_status { BLE_CONN_STATUS_INVALID , BLE_CONN_STATUS_DISCONNECTED , BLE_CONN_STATUS_CONNECTED }
 Connection handle statuses. More...
 

Detailed Description

Module for storing data on Bluetooth LE connections.

This module stores certain states for each connection, which can be queried by connection handle. The module uses Bluetooth LE events to keep the states updated.

In addition to the preprogrammed states, this module can also keep track of a number of binary user states, or user flags. These are reset to 0 for new connections, but otherwise not touched by this module.

This module uses atomics to make the flag operations thread-safe.