nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_802154_stat_counter_increment

#define nrf_802154_stat_counter_increment (   field_name)
Value:
do \
{ \
\
nrf_802154_mcu_critical_enter(mcu_cs); \
(g_nrf_802154_stats.counters.field_name)++; \
nrf_802154_mcu_critical_exit(mcu_cs); \
} \
while (0)
uint32_t nrf_802154_mcu_critical_state_t
Type holding MCU critical section state.
Definition: nrf_802154_utils.h:90
volatile nrf_802154_stats_t g_nrf_802154_stats
nrf_802154_stat_counters_t counters
Statistic counters.
Definition: nrf_802154_types.h:344

Increment one of the nrf_802154_stat_counters_t fields.

Parameters
field_nameIdentifier of struct member to increment