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

◆ NRF_SDH_BLE_OBSERVER

#define NRF_SDH_BLE_OBSERVER ( _observer,
_handler,
_ctx,
_prio )

#include <nrf_sdh_ble.h>

Value:
static const TYPE_SECTION_ITERABLE(struct nrf_sdh_ble_evt_observer, _observer, \
nrf_sdh_ble_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \
.handler = _handler, \
.context = _ctx, \
}
#define PRIO_LEVEL_ORD(level)
Utility macro to convert a priority token to its numerical value.
Definition nrf_sdh.h:65
#define PRIO_LEVEL_IS_VALID(level)
Utility macro to check for observer priority validity.
Definition nrf_sdh.h:53
Bluetooth LE event observer.
Definition nrf_sdh_ble.h:40

Register a SoftDevice Bluetooth LE event observer.

Parameters
_observerName of the observer.
_handlerState request handler.
_ctxA context passed to the state request handler.
_prioPriority of the observer's event handler. Allowed input: HIGHEST, HIGH, USER, USER_LOW, LOWEST.