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

◆ nrf_sdh_disable_request()

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.

Return values
0If the SoftDevice has been disabled.
-EALREADYIf the SoftDevice is already disabled.
-EINPROGRESSIf a state change has already been requested.
-EBUSYThe 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.