38 #if defined(LETIMER_COUNT) && (LETIMER_COUNT > 0)
62 letimerRepeatFree = _LETIMER_CTRL_REPMODE_FREE,
64 letimerRepeatOneshot = _LETIMER_CTRL_REPMODE_ONESHOT,
69 letimerRepeatBuffered = _LETIMER_CTRL_REPMODE_BUFFERED,
74 letimerRepeatDouble = _LETIMER_CTRL_REPMODE_DOUBLE
75 } LETIMER_RepeatMode_TypeDef;
82 letimerUFOANone = _LETIMER_CTRL_UFOA0_NONE,
84 letimerUFOAToggle = _LETIMER_CTRL_UFOA0_TOGGLE,
86 letimerUFOAPulse = _LETIMER_CTRL_UFOA0_PULSE,
88 letimerUFOAPwm = _LETIMER_CTRL_UFOA0_PWM
89 } LETIMER_UFOA_TypeDef;
100 #if defined(LETIMER_CTRL_RTCC0TEN)
108 LETIMER_UFOA_TypeDef ufoa0;
109 LETIMER_UFOA_TypeDef ufoa1;
110 LETIMER_RepeatMode_TypeDef repMode;
111 } LETIMER_Init_TypeDef;
114 #if defined(LETIMER_CTRL_RTCC0TEN)
115 #define LETIMER_INIT_DEFAULT \
130 #define LETIMER_INIT_DEFAULT \
148 uint32_t LETIMER_CompareGet(LETIMER_TypeDef *letimer,
unsigned int comp);
149 void LETIMER_CompareSet(LETIMER_TypeDef *letimer,
164 __STATIC_INLINE uint32_t LETIMER_CounterGet(LETIMER_TypeDef *letimer)
166 return(letimer->CNT);
170 void LETIMER_Enable(LETIMER_TypeDef *letimer,
bool enable);
171 #if defined(_LETIMER_FREEZE_MASK)
172 void LETIMER_FreezeEnable(LETIMER_TypeDef *letimer,
bool enable);
174 void LETIMER_Init(LETIMER_TypeDef *letimer,
const LETIMER_Init_TypeDef *init);
189 __STATIC_INLINE
void LETIMER_IntClear(LETIMER_TypeDef *letimer, uint32_t flags)
191 letimer->IFC = flags;
206 __STATIC_INLINE
void LETIMER_IntDisable(LETIMER_TypeDef *letimer, uint32_t flags)
208 letimer->IEN &= ~flags;
228 __STATIC_INLINE
void LETIMER_IntEnable(LETIMER_TypeDef *letimer, uint32_t flags)
230 letimer->IEN |= flags;
248 __STATIC_INLINE uint32_t LETIMER_IntGet(LETIMER_TypeDef *letimer)
275 __STATIC_INLINE uint32_t LETIMER_IntGetEnabled(LETIMER_TypeDef *letimer)
285 return letimer->IF & ien;
300 __STATIC_INLINE
void LETIMER_IntSet(LETIMER_TypeDef *letimer, uint32_t flags)
302 letimer->IFS = flags;
306 uint32_t LETIMER_RepeatGet(LETIMER_TypeDef *letimer,
unsigned int rep);
307 void LETIMER_RepeatSet(LETIMER_TypeDef *letimer,
310 void LETIMER_Reset(LETIMER_TypeDef *letimer);
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.