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

◆ nrf_802154_mcu_critical_enter()

__STATIC_INLINE nrf_802154_mcu_critical_state_t nrf_802154_mcu_critical_enter ( void )

#include <nrf_802154/driver/src/nrf_802154_utils.h>

Enters critical section on MCU level.

Use nrf_802154_mcu_critical_exit complementary. Consider following code:

// do your critical stuff as fast as possible
__STATIC_INLINE nrf_802154_mcu_critical_state_t nrf_802154_mcu_critical_enter(void)
Enters critical section on MCU level.
Definition nrf_802154_utils.h:132
__STATIC_INLINE void nrf_802154_mcu_critical_exit(nrf_802154_mcu_critical_state_t mcu_cs)
Exits critical section on MCU level.
Definition nrf_802154_utils.h:142
uint32_t nrf_802154_mcu_critical_state_t
Type holding MCU critical section state.
Definition nrf_802154_utils.h:86
Returns
Value to be passed to complementary call to nrf_802154_mcu_critical_exit.