Home
last modified time | relevance | path

Searched refs:letimer (Results 1 – 4 of 4) sorted by relevance

/hal_silabs-latest/gecko/emlib/src/
Dem_letimer.c90 __STATIC_INLINE void regSync(LETIMER_TypeDef *letimer, uint32_t mask) in regSync() argument
95 if (letimer->FREEZE & LETIMER_FREEZE_REGFREEZE) { in regSync()
101 while (letimer->SYNCBUSY & mask) { in regSync()
124 uint32_t LETIMER_CompareGet(LETIMER_TypeDef *letimer, unsigned int comp) in LETIMER_CompareGet() argument
128 EFM_ASSERT(LETIMER_REF_VALID(letimer) && LETIMER_COMP_REG_VALID(comp)); in LETIMER_CompareGet()
134 regSync(letimer, LETIMER_SYNCBUSY_COMP0); in LETIMER_CompareGet()
136 ret = letimer->COMP0; in LETIMER_CompareGet()
141 regSync(letimer, LETIMER_SYNCBUSY_COMP1); in LETIMER_CompareGet()
143 ret = letimer->COMP1; in LETIMER_CompareGet()
165 uint32_t LETIMER_CounterGet(LETIMER_TypeDef *letimer) in LETIMER_CounterGet() argument
[all …]
/hal_silabs-latest/simplicity_sdk/platform/emlib/src/
Dem_letimer.c90 __STATIC_INLINE void regSync(LETIMER_TypeDef *letimer, uint32_t mask) in regSync() argument
95 if (letimer->FREEZE & LETIMER_FREEZE_REGFREEZE) { in regSync()
101 while (letimer->SYNCBUSY & mask) { in regSync()
124 uint32_t LETIMER_CompareGet(LETIMER_TypeDef *letimer, unsigned int comp) in LETIMER_CompareGet() argument
128 EFM_ASSERT(LETIMER_REF_VALID(letimer) && LETIMER_COMP_REG_VALID(comp)); in LETIMER_CompareGet()
134 regSync(letimer, LETIMER_SYNCBUSY_COMP0); in LETIMER_CompareGet()
136 ret = letimer->COMP0; in LETIMER_CompareGet()
141 regSync(letimer, LETIMER_SYNCBUSY_COMP1); in LETIMER_CompareGet()
143 ret = letimer->COMP1; in LETIMER_CompareGet()
165 uint32_t LETIMER_CounterGet(LETIMER_TypeDef *letimer) in LETIMER_CounterGet() argument
[all …]
/hal_silabs-latest/gecko/emlib/inc/
Dem_letimer.h140 uint32_t LETIMER_CompareGet(LETIMER_TypeDef *letimer, unsigned int comp);
141 void LETIMER_CompareSet(LETIMER_TypeDef *letimer,
144 uint32_t LETIMER_CounterGet(LETIMER_TypeDef *letimer);
146 void LETIMER_CounterSet(LETIMER_TypeDef *letimer, uint32_t value);
149 void LETIMER_Enable(LETIMER_TypeDef *letimer, bool enable);
151 void LETIMER_FreezeEnable(LETIMER_TypeDef *letimer, bool enable);
153 void LETIMER_Init(LETIMER_TypeDef *letimer, const LETIMER_Init_TypeDef *init);
167 __STATIC_INLINE void LETIMER_IntClear(LETIMER_TypeDef *letimer, uint32_t flags) in LETIMER_IntClear() argument
170 letimer->IF_CLR = flags; in LETIMER_IntClear()
172 letimer->IFC = flags; in LETIMER_IntClear()
[all …]
/hal_silabs-latest/simplicity_sdk/platform/emlib/inc/
Dem_letimer.h140 uint32_t LETIMER_CompareGet(LETIMER_TypeDef *letimer, unsigned int comp);
141 void LETIMER_CompareSet(LETIMER_TypeDef *letimer,
144 uint32_t LETIMER_CounterGet(LETIMER_TypeDef *letimer);
146 void LETIMER_CounterSet(LETIMER_TypeDef *letimer, uint32_t value);
149 void LETIMER_Enable(LETIMER_TypeDef *letimer, bool enable);
151 void LETIMER_FreezeEnable(LETIMER_TypeDef *letimer, bool enable);
153 void LETIMER_Init(LETIMER_TypeDef *letimer, const LETIMER_Init_TypeDef *init);
167 __STATIC_INLINE void LETIMER_IntClear(LETIMER_TypeDef *letimer, uint32_t flags) in LETIMER_IntClear() argument
170 letimer->IF_CLR = flags; in LETIMER_IntClear()
172 letimer->IFC = flags; in LETIMER_IntClear()
[all …]