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

◆ nrf_sdh_enable_request()

int nrf_sdh_enable_request ( void )

#include <nrf_sdh.h>

Enable the SoftDevice.

Request to enable the SoftDevice. An observer may stop the SoftDevice state change by returning non-zero when receiving the NRF_SDH_STATE_EVT_ENABLE_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 enabled.
-EALREADYIf the SoftDevice is already enabled.
-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_ENABLED event is sent.