nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_802154_sleep_if_idle()

nrf_802154_sleep_error_t nrf_802154_sleep_if_idle ( void  )

#include <nrf_802154/common/include/nrf_802154.h>

Changes the radio state to the RADIO_STATE_SLEEP state if the radio is idle.

The sleep state is the lowest power state. In this state, the radio cannot transmit or receive frames. It is the only state in which the driver releases the high-frequency clock and does not request timeslots from a radio arbiter.

Note
If another module requests it, the high-frequency clock may be enabled even in the radio sleep state.
Return values
NRF_802154_SLEEP_ERROR_NONEThe radio changes its state to the low power mode.
NRF_802154_SLEEP_ERROR_BUSYThe driver could not schedule changing state.