Lines Matching refs:timer

77 #define TPWM_ENABLE_PWM_MODE(timer)         ((timer)->CTL |= TIMER_CTL_FUNCSEL_Msk)  argument
90 #define TPWM_DISABLE_PWM_MODE(timer) ((timer)->CTL &= ~TIMER_CTL_FUNCSEL_Msk) argument
102 #define TPWM_START_COUNTER(timer) ((timer)->PWMCTL |= TIMER_PWMCTL_CNTEN_Msk) argument
114 #define TPWM_STOP_COUNTER(timer) ((timer)->PWMPERIOD = 0x0UL) argument
129 #define TPWM_SET_PRESCALER(timer, u32Prescaler) ((timer)->PWMCLKPSC = (u32Prescaler)) argument
141 #define TPWM_GET_PRESCALER(timer) ((timer)->PWMCLKPSC) argument
155 #define TPWM_SET_PERIOD(timer, u32Period) ((timer)->PWMPERIOD = (u32Period)) argument
167 #define TPWM_GET_PERIOD(timer) ((timer)->PWMPERIOD) argument
181 #define TPWM_SET_CMPDAT(timer, u32Cmp) ((timer)->PWMCMPDAT = (u32Cmp)) argument
193 #define TPWM_GET_CMPDAT(timer) ((timer)->PWMCMPDAT) argument
205 #define TPWM_CLEAR_COUNTER(timer) ((timer)->PWMCNTCLR = TIMER_PWMCNTCLR_CNTCLR_Msk) argument
221 #define TPWM_ENABLE_OUTPUT(timer, u32Channel) ((timer)->PWMPOCTL = ((timer)->PWMPOCTL & ~(TIMER_P… argument
235 #define TPWM_SELECT_TOUT_PIN(timer, u32ToutSel) ((timer)->PWMPOCTL = ((timer)->PWMPOCTL & ~TIMER… argument
251 #define TPWM_SET_OUTPUT_INVERSE(timer, u32Channel) ((timer)->PWMPOLCTL = (u32Channel)) argument
263 #define TPWM_ENABLE_PERIOD_INT(timer) ((timer)->PWMINTEN0 |= TIMER_PWMINTEN0_PIEN_Msk) argument
275 #define TPWM_DISABLE_PERIOD_INT(timer) ((timer)->PWMINTEN0 &= ~TIMER_PWMINTEN0_PIEN_Msk) argument
288 #define TPWM_GET_PERIOD_INT_FLAG(timer) (((timer)->PWMINTSTS0 & TIMER_PWMINTSTS0_PIF_Msk)? 1 : … argument
300 #define TPWM_CLEAR_PERIOD_INT_FLAG(timer) ((timer)->PWMINTSTS0 = TIMER_PWMINTSTS0_PIF_Msk) argument
312 #define TPWM_ENABLE_CMP_UP_INT(timer) ((timer)->PWMINTEN0 |= TIMER_PWMINTEN0_CMPUIEN_Msk) argument
324 #define TPWM_DISABLE_CMP_UP_INT(timer) ((timer)->PWMINTEN0 &= ~TIMER_PWMINTEN0_CMPUIEN_Msk) argument
337 #define TPWM_GET_CMP_UP_INT_FLAG(timer) (((timer)->PWMINTSTS0 & TIMER_PWMINTSTS0_CMPUIF_Msk)? 1… argument
349 #define TPWM_CLEAR_CMP_UP_INT_FLAG(timer) ((timer)->PWMINTSTS0 = TIMER_PWMINTSTS0_CMPUIF_Msk) argument
362 #define TPWM_GET_REACH_MAX_CNT_STATUS(timer) (((timer)->PWMSTATUS & TIMER_PWMSTATUS_CNTMAXF_Msk)… argument
374 #define TPWM_CLEAR_REACH_MAX_CNT_STATUS(timer) ((timer)->PWMSTATUS = TIMER_PWMSTATUS_CNTMAXF_Msk) argument
387 #define TPWM_GET_TRG_LPADC_STATUS(timer) (((timer)->PWMSTATUS & TIMER_PWMSTATUS_LPADCT… argument
399 #define TPWM_CLEAR_TRG_LPADC_STATUS(timer) ((timer)->PWMSTATUS = TIMER_PWMSTATUS_LPADCTR… argument
412 #define TPWM_GET_TRG_EADC_STATUS(timer) (((timer)->PWMSTATUS & TIMER_PWMSTATUS_EADCTRG… argument
424 #define TPWM_CLEAR_TRG_EADC_STATUS(timer) ((timer)->PWMSTATUS = TIMER_PWMSTATUS_EADCTRGF… argument
437 #define TPWM_GET_TRG_DAC_STATUS(timer) (((timer)->PWMSTATUS & TIMER_PWMSTATUS_DACTRGF_… argument
449 #define TPWM_CLEAR_TRG_DAC_STATUS(timer) ((timer)->PWMSTATUS = TIMER_PWMSTATUS_DACTRGF_M… argument
462 #define TPWM_GET_TRG_PDMA_STATUS(timer) (((timer)->PWMSTATUS & TIMER_PWMSTATUS_PDMATRG… argument
474 #define TPWM_CLEAR_TRG_PDMA_STATUS(timer) ((timer)->PWMSTATUS = TIMER_PWMSTATUS_PDMATRGF… argument
476 uint32_t TPWM_ConfigOutputFreqAndDuty(TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle);
477 void TPWM_EnableCounter(TIMER_T *timer);
478 void TPWM_DisableCounter(TIMER_T *timer);
479 void TPWM_EnableTrigger(TIMER_T *timer, uint32_t u32TargetMask, uint32_t u32Condition);
480 void TPWM_DisableTrigger(TIMER_T *timer, uint32_t u32TargetMask);
494 #define TPWM_EnableTriggerEADC(timer, u32Condition) TPWM_EnableTrigger(timer, TIMER_PWMTRGCTL_PWMT… argument
505 #define TPWM_DisableTriggerEADC(timer) TPWM_DisableTrigger(timer, TIMER_PWMTRGCTL_PWM… argument
519 #define TPWM_EnableTriggerDAC(timer, u32Condition) TPWM_EnableTrigger(timer, TIMER_PWMTRGCTL_PWMTR… argument
530 #define TPWM_DisableTriggerDAC(timer) TPWM_DisableTrigger(timer, TIMER_PWMTRGCTL_PWMT… argument
544 #define TPWM_EnableTriggerPDMA(timer, u32Condition) TPWM_EnableTrigger(timer, TIMER_PWMTRGCTL_PWMTR… argument
555 #define TPWM_DisableTriggerPDMA(timer) TPWM_DisableTrigger(timer, TIMER_PWMTRGCTL_PWMT… argument
558 __STATIC_INLINE void TPWM_EnableWakeup(TIMER_T *timer);
559 __STATIC_INLINE void TPWM_DisableWakeup(TIMER_T *timer);
560 __STATIC_INLINE uint32_t TPWM_GetWakeupFlag(TIMER_T *timer);
561 __STATIC_INLINE void TPWM_ClearWakeupFlag(TIMER_T *timer);
575 __STATIC_INLINE void TPWM_EnableWakeup(TIMER_T *timer) in TPWM_EnableWakeup() argument
577 timer->PWMCTL |= TIMER_PWMCTL_PWMINTWKEN_Msk; in TPWM_EnableWakeup()
590 __STATIC_INLINE void TPWM_DisableWakeup(TIMER_T *timer) in TPWM_DisableWakeup() argument
592 timer->PWMCTL &= ~TIMER_PWMCTL_PWMINTWKEN_Msk; in TPWM_DisableWakeup()
606 __STATIC_INLINE uint32_t TPWM_GetWakeupFlag(TIMER_T *timer) in TPWM_GetWakeupFlag() argument
608 return ((timer->PWMSTATUS & TIMER_PWMSTATUS_PWMINTWKF_Msk) ? 1 : 0); in TPWM_GetWakeupFlag()
621 __STATIC_INLINE void TPWM_ClearWakeupFlag(TIMER_T *timer) in TPWM_ClearWakeupFlag() argument
623 timer->PWMSTATUS = TIMER_PWMSTATUS_PWMINTWKF_Msk; in TPWM_ClearWakeupFlag()
626 void TPWM_EnableAcc(TIMER_T *timer, uint32_t u32IntFlagCnt, uint32_t u32IntAccSrc);
627 void TPWM_DisableAcc(TIMER_T *timer);
628 void TPWM_EnableAccInt(TIMER_T *timer);
629 void TPWM_DisableAccInt(TIMER_T *timer);
630 void TPWM_ClearAccInt(TIMER_T *timer);
631 uint32_t TPWM_GetAccInt(TIMER_T *timer);
632 void TPWM_EnableAccPDMA(TIMER_T *timer);
633 void TPWM_DisableAccPDMA(TIMER_T *timer);
634 void TPWM_EnableAccStopMode(TIMER_T *timer);
635 void TPWM_DisableAccStopMode(TIMER_T *timer);