nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_802154_reinit()

bool nrf_802154_reinit ( void )

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

Reinitializes the 802.15.4 driver.

This function reinitializes the driver by moving the RADIO peripheral to RADIO_STATE_SLEEP and restoring driver-managed state to defaults. All ongoing and delayed operations are cancelled. The configuration, counters, and security keys revert to their default values.

Note
Call this function only when the application or transport protocol is in idle state, i.e. not transmitting nor receiving frames. This is required to keep the radio in the RADIO_STATE_SLEEP state and prevent to use the driver during the reinitialization.
Return values
trueReinitialization was successful.
falseReinitialization failed because the radio was busy and could not be put to sleep. Call this function again when the radio can be placed in sleep.