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

◆ NRF_SDH_STACK_EVT_OBSERVER

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

#include <nrf_sdh.h>

Value:
static const TYPE_SECTION_ITERABLE(struct nrf_sdh_stack_evt_observer, _observer, \
nrf_sdh_stack_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
SoftDevice stack event observer.
Definition nrf_sdh.h:166

Register a SoftDevice stack event observer.

A SoftDevice stack event observer receives all events from the SoftDevice. These events can be either Bluetooth LE or SoC events. If you need to receive Bluetooth LE or SoC events separately, use NRF_SDH_BLE_OBSERVER or NRF_SDH_SOC_OBSERVER respectively.

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