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

◆ ble_conn_state_user_flag_acquire()

int ble_conn_state_user_flag_acquire ( void )

#include <ble_conn_state.h>

Obtain exclusive access to one of the user flag collections.

The acquired collection contains one flag for each connection. These flags can be set and read individually for each connection.

The state of user flags will not be modified by the connection state module, except to set it to 0 for a connection when that connection is invalidated.

Returns
The index of the acquired flag, or BLE_CONN_STATE_USER_FLAG_INVALID if none are available.