Lancaster University fork of the Nordic nrf51-SDK repository, which actually lives on github: https://github.com/lancaster-university/nrf51-sdk

Dependents:   nRF51822

Embed: (wiki syntax)

« Back to documentation index

ble_conn_state.h File Reference

ble_conn_state.h File Reference

Go to the source code of this file.

Enumerations

enum  ble_conn_state_status_t { BLE_CONN_STATUS_INVALID, BLE_CONN_STATUS_DISCONNECTED, BLE_CONN_STATUS_CONNECTED }
 

Connection handle statuses.

More...
enum  ble_conn_state_user_flag_id_t
 

One ID for each user flag collection.

More...

Functions

void ble_conn_state_init (void)
 Function for initializing or resetting the module.
void ble_conn_state_on_ble_evt (ble_evt_t *p_ble_evt)
 Function for providing BLE SoftDevice events to the connection state module.
bool ble_conn_state_valid (uint16_t conn_handle)
 Function for querying whether a connection handle represents a valid connection.
uint8_t ble_conn_state_role (uint16_t conn_handle)
 Function for querying the role of the local device in a connection.
ble_conn_state_status_t ble_conn_state_status (uint16_t conn_handle)
 Function for querying the status of a connection.
bool ble_conn_state_encrypted (uint16_t conn_handle)
 Function for querying whether a connection is encrypted.
bool ble_conn_state_mitm_protected (uint16_t conn_handle)
 Function for querying whether a connection encryption is protected from Man in the Middle attacks.
uint32_t ble_conn_state_n_connections (void)
 Function for querying the total number of connections.
uint32_t ble_conn_state_n_centrals (void)
 Function for querying the total number of connections in which the role of the local device is BLE_GAP_ROLE_CENTRAL.
uint32_t ble_conn_state_n_peripherals (void)
 Function for querying the total number of connections in which the role of the local device is BLE_GAP_ROLE_PERIPH.
sdk_mapped_flags_key_list_t ble_conn_state_conn_handles (void)
 Function for obtaining a list of all connection handles for which the module has a record.
sdk_mapped_flags_key_list_t ble_conn_state_central_handles (void)
 Function for obtaining a list of connection handles in which the role of the local device is BLE_GAP_ROLE_CENTRAL.
sdk_mapped_flags_key_list_t ble_conn_state_periph_handles (void)
 Function for obtaining the handle for the connection in which the role of the local device is BLE_GAP_ROLE_PERIPH.
ble_conn_state_user_flag_id_t ble_conn_state_user_flag_acquire (void)
 Function for obtaining exclusive access to one of the user flag collections.
bool ble_conn_state_user_flag_get (uint16_t conn_handle, ble_conn_state_user_flag_id_t flag_id)
 Function for reading the value of a user flag.
void ble_conn_state_user_flag_set (uint16_t conn_handle, ble_conn_state_user_flag_id_t flag_id, bool value)
 Function for setting the value of a user flag.
sdk_mapped_flags_t ble_conn_state_user_flag_collection (ble_conn_state_user_flag_id_t flag_id)
 Function for getting the state of a user flag for all connection handles.

Detailed Description

Definition in file ble_conn_state.h.