Lines Matching refs:ttmr
64 #define TTMR_SET_CMP_VALUE(ttmr, u32Value) ((ttmr)->CMP = (u32Value)) argument
78 #define TTMR_SET_PRESCALE_VALUE(ttmr, u32Value) ((ttmr)->CTL = ((ttmr)->CTL & ~TTMR_CTL_PSC_Msk… argument
91 #define TTMR_IS_ACTIVE(ttmr) (((ttmr)->CTL & TTMR_CTL_ACTSTS_Msk)? 1 : 0) argument
106 #define TTMR_SET_OPMODE(ttmr, u32OpMode) ((ttmr)->CTL = ((ttmr)->CTL & ~TTMR_CTL_OPMODE_Msk) | (… argument
109 __STATIC_INLINE void TTMR_Start(TTMR_T *ttmr);
110 __STATIC_INLINE void TTMR_Stop(TTMR_T *ttmr);
111 __STATIC_INLINE void TTMR_EnableWakeup(TTMR_T *ttmr);
112 __STATIC_INLINE void TTMR_DisableWakeup(TTMR_T *ttmr);
113 __STATIC_INLINE void TTMR_EnableInt(TTMR_T *ttmr);
114 __STATIC_INLINE void TTMR_DisableInt(TTMR_T *ttmr);
115 __STATIC_INLINE uint32_t TTMR_GetIntFlag(TTMR_T *ttmr);
116 __STATIC_INLINE void TTMR_ClearIntFlag(TTMR_T *ttmr);
117 __STATIC_INLINE uint32_t TTMR_GetWakeupFlag(TTMR_T *ttmr);
118 __STATIC_INLINE void TTMR_ClearWakeupFlag(TTMR_T *ttmr);
119 __STATIC_INLINE uint32_t TTMR_GetCounter(TTMR_T *ttmr);
130 __STATIC_INLINE void TTMR_Start(TTMR_T *ttmr) in TTMR_Start() argument
132 ttmr->CTL |= TTMR_CTL_CNTEN_Msk; in TTMR_Start()
144 __STATIC_INLINE void TTMR_Stop(TTMR_T *ttmr) in TTMR_Stop() argument
146 ttmr->CTL &= ~TTMR_CTL_CNTEN_Msk; in TTMR_Stop()
160 __STATIC_INLINE void TTMR_EnableWakeup(TTMR_T *ttmr) in TTMR_EnableWakeup() argument
162 ttmr->CTL |= (TTMR_CTL_WKEN_Msk | TTMR_CTL_PDCLKEN_Msk); in TTMR_EnableWakeup()
174 __STATIC_INLINE void TTMR_DisableWakeup(TTMR_T *ttmr) in TTMR_DisableWakeup() argument
176 ttmr->CTL &= ~TTMR_CTL_WKEN_Msk; in TTMR_DisableWakeup()
189 __STATIC_INLINE void TTMR_EnableInt(TTMR_T *ttmr) in TTMR_EnableInt() argument
191 ttmr->CTL |= TTMR_CTL_INTEN_Msk; in TTMR_EnableInt()
203 __STATIC_INLINE void TTMR_DisableInt(TTMR_T *ttmr) in TTMR_DisableInt() argument
205 ttmr->CTL &= ~TTMR_CTL_INTEN_Msk; in TTMR_DisableInt()
219 __STATIC_INLINE uint32_t TTMR_GetIntFlag(TTMR_T *ttmr) in TTMR_GetIntFlag() argument
221 return ((ttmr->INTSTS & TTMR_INTSTS_TIF_Msk) ? 1UL : 0UL); in TTMR_GetIntFlag()
233 __STATIC_INLINE void TTMR_ClearIntFlag(TTMR_T *ttmr) in TTMR_ClearIntFlag() argument
235 ttmr->INTSTS = TTMR_INTSTS_TIF_Msk; in TTMR_ClearIntFlag()
249 __STATIC_INLINE uint32_t TTMR_GetWakeupFlag(TTMR_T *ttmr) in TTMR_GetWakeupFlag() argument
251 return (ttmr->INTSTS & TTMR_INTSTS_TWKF_Msk ? 1UL : 0UL); in TTMR_GetWakeupFlag()
263 __STATIC_INLINE void TTMR_ClearWakeupFlag(TTMR_T *ttmr) in TTMR_ClearWakeupFlag() argument
265 ttmr->INTSTS = TTMR_INTSTS_TWKF_Msk; in TTMR_ClearWakeupFlag()
278 __STATIC_INLINE uint32_t TTMR_GetCounter(TTMR_T *ttmr) in TTMR_GetCounter() argument
280 return ttmr->CNT; in TTMR_GetCounter()
292 __STATIC_INLINE void TTMR_EnablePDCLK(TTMR_T *ttmr) in TTMR_EnablePDCLK() argument
294 ttmr->CTL |= TTMR_CTL_PDCLKEN_Msk; in TTMR_EnablePDCLK()
306 __STATIC_INLINE void TTMR_DisablePDCLK(TTMR_T *ttmr) in TTMR_DisablePDCLK() argument
308 ttmr->CTL &= ~TTMR_CTL_PDCLKEN_Msk; in TTMR_DisablePDCLK()
311 uint32_t TTMR_Open(TTMR_T *ttmr, uint32_t u32Mode, uint32_t u32Freq);
312 void TTMR_Close(TTMR_T *ttmr);
313 int32_t TTMR_Delay(TTMR_T *ttmr, uint32_t u32Usec);
314 uint32_t TTMR_GetModuleClock(TTMR_T *ttmr);
315 void TTMR_SetTriggerTarget(TTMR_T *ttmr, uint32_t u32Mask);
316 int32_t TTMR_ResetCounter(TTMR_T *ttmr);