33 #ifndef EM_CRYOTIMER_H
34 #define EM_CRYOTIMER_H
40 #if defined(CRYOTIMER_PRESENT) && (CRYOTIMER_COUNT == 1)
208 #define CRYOTIMER_INIT_DEFAULT \
215 cryotimerPeriod_4096m, \
#define _CRYOTIMER_CTRL_OSCSEL_LFRCO
#define _CRYOTIMER_IFC_MASK
__STATIC_INLINE uint32_t CRYOTIMER_IntGet(void)
Get the CRYOTIMER interrupt flag.
RAM and peripheral bit-field set and clear API.
#define _CRYOTIMER_IEN_MASK
__STATIC_INLINE uint32_t CRYOTIMER_CounterGet(void)
Get the CRYOTIMER counter value.
__STATIC_INLINE void CRYOTIMER_EM4WakeupEnable(bool enable)
Enable/disable EM4 wakeup capability.
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
__STATIC_INLINE void CRYOTIMER_IntDisable(uint32_t flags)
Disable one or more CRYOTIMER interrupts.
CRYOTIMER_Period_TypeDef period
__STATIC_INLINE uint32_t CRYOTIMER_PeriodGet(void)
Get the CRYOTIMER period select value.
__STATIC_INLINE void CRYOTIMER_IntSet(uint32_t flags)
Set the CRYOTIMER period interrupt flag.
__STATIC_INLINE uint32_t CRYOTIMER_IntGetEnabled(void)
Get enabled and pending CRYOTIMER interrupt flags. Useful for handling more interrupt sources in the ...
#define _CRYOTIMER_CTRL_PRESC_DIV128
__STATIC_INLINE void CRYOTIMER_Enable(bool enable)
Enable/disable the CRYOTIMER.
void CRYOTIMER_Init(const CRYOTIMER_Init_TypeDef *init)
Initialize the CRYOTIMER.
#define _CRYOTIMER_CTRL_OSCSEL_ULFRCO
#define _CRYOTIMER_CTRL_PRESC_DIV8
CRYOTIMER_Osc_TypeDef osc
CRYOTIMER_Presc_TypeDef presc
#define _CRYOTIMER_CTRL_PRESC_DIV2
#define _CRYOTIMER_CTRL_PRESC_DIV1
#define _CRYOTIMER_CTRL_PRESC_DIV16
#define _CRYOTIMER_CTRL_PRESC_DIV64
__STATIC_INLINE void CRYOTIMER_IntEnable(uint32_t flags)
Enable one or more CRYOTIMER interrupts.
__STATIC_INLINE void BUS_RegBitWrite(volatile uint32_t *addr, unsigned int bit, unsigned int val)
Perform a single-bit write operation on a peripheral register.
#define _CRYOTIMER_IFS_MASK
#define _CRYOTIMER_CTRL_OSCSEL_LFXO
#define _CRYOTIMER_CTRL_PRESC_DIV4
#define _CRYOTIMER_CTRL_EN_SHIFT
#define _CRYOTIMER_CTRL_PRESC_DIV32
#define _CRYOTIMER_EM4WUEN_EM4WU_SHIFT
__STATIC_INLINE void CRYOTIMER_PeriodSet(uint32_t period)
Set the CRYOTIMER period select.
__STATIC_INLINE void CRYOTIMER_IntClear(uint32_t flags)
Clear the CRYOTIMER period interrupt.
#define _CRYOTIMER_PERIODSEL_MASK