![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| #define NRF_SDH_STATE_EVT_OBSERVER | ( | _observer, | |
| _handler, | |||
| _ctx, | |||
| _prio ) |
#include <nrf_sdh.h>
Register a SoftDevice state observer.
A SoftDevice state observer receives events when the SoftDevice state has changed or is about to change. An observer may return non-zero when receiving NRF_SDH_STATE_EVT_ENABLE_PREPARE or NRF_SDH_STATE_EVT_DISABLE_PREPARE to halt the state change.
Note that state events may be sent from various contexts, depending on the context of the initiator of the SoftDevice state change.
| _observer | Name of the observer. |
| _handler | State request handler. |
| _ctx | A context passed to the state request handler. |
| _prio | Priority of the observer's event handler. Allowed input: HIGHEST, HIGH, USER, USER_LOW, LOWEST. |