![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| int nrf_sdh_disable_request | ( | void | ) |
#include <nrf_sdh.h>
Disable the SoftDevice.
Request to disable the SoftDevice. An observer may stop the SoftDevice state change by returning non-zero when receiving the NRF_SDH_STATE_EVT_DISABLE_PREPARE event. If an observer does so, it must call nrf_sdh_observer_ready() when it becomes ready.
| 0 | If the SoftDevice has been disabled. |
| -EALREADY | If the SoftDevice is already disabled. |
| -EINPROGRESS | If a state change has already been requested. |
| -EBUSY | The request was sent, but one or more observer were busy. Once all observers have become ready, the SoftDevice will change state and the NRF_SDH_STATE_EVT_DISABLED event is sent. |