nrfxlib API 0.1.0
Loading...
Searching...
No Matches
Utils definitions used in the 802.15.4 driver

Definitions of utils used in the 802.15.4 driver. More...

Macros

#define NRF_802154_RTC_FREQUENCY   32768UL
 RTC clock frequency.
 
#define NRF_802154_US_PER_S   1000000ULL
 Defines the number of microseconds in one second.
 
#define NRF_802154_US_PER_TICK   NRF_802154_RTC_TICKS_TO_US(1)
 Number of microseconds in one RTC tick (rounded up).
 
#define NRF_802154_FREQUENCY_US_PER_S_GCD_BITS   6
 Number of bits to shift RTC_FREQUENCY and US_PER_S to achieve the division by greatest common divisor.
 
#define NRF_802154_DIVIDE_AND_CEIL(A, B)   (((A) + (B)-1) / (B))
 Ceil division helper.
 
#define NRF_802154_RTC_TICKS_TO_US(ticks)
 Defines the conversion of RTC ticks to microseconds (us).
 
#define NUMELTS(X)   (sizeof((X)) / sizeof(X[0]))
 Macro to get the number of elements in an array.
 
#define nrf_802154_delay_us(time_in_us)   nrfx_coredep_delay_us(time_in_us)
 Active waiting for given number of microseconds.
 
#define nrf_802154_mcu_critical_enter(mcu_critical_state)
 Enters critical section on MCU level.
 
#define nrf_802154_mcu_critical_exit(mcu_critical_state)
 Exits critical section on MCU level.
 

Typedefs

typedef uint32_t nrf_802154_mcu_critical_state_t
 Type holding MCU critical section state.
 

Functions

static uint64_t NRF_802154_US_TO_RTC_TICKS (uint64_t time)
 

Detailed Description

Definitions of utils used in the 802.15.4 driver.