Lines Matching refs:lptmr
78 #define LPTPWM_ENABLE_PWM_MODE(lptmr) ((lptmr)->CTL |= LPTMR_CTL_FUNCSEL_Msk) argument
91 #define LPTPWM_DISABLE_PWM_MODE(lptmr) ((lptmr)->CTL &= ~LPTMR_CTL_FUNCSEL_Msk) argument
103 #define LPTPWM_START_COUNTER(lptmr) ((lptmr)->PWMCTL |= LPTMR_PWMCTL_CNTEN_Msk) argument
115 #define LPTPWM_STOP_COUNTER(lptmr) ((lptmr)->PWMPERIOD = 0x0UL) argument
130 #define LPTPWM_SET_PRESCALER(lptmr, u32Prescaler) ((lptmr)->PWMCLKPSC = (u32Prescaler)) argument
142 #define LPTPWM_GET_PRESCALER(lptmr) ((lptmr)->PWMCLKPSC) argument
156 #define LPTPWM_SET_PERIOD(lptmr, u32Period) ((lptmr)->PWMPERIOD = (u32Period)) argument
168 #define LPTPWM_GET_PERIOD(lptmr) ((lptmr)->PWMPERIOD) argument
182 #define LPTPWM_SET_CMPDAT(lptmr, u32Cmp) ((lptmr)->PWMCMPDAT = (u32Cmp)) argument
194 #define LPTPWM_GET_CMPDAT(lptmr) ((lptmr)->PWMCMPDAT) argument
206 #define LPTPWM_CLEAR_COUNTER(lptmr) ((lptmr)->PWMCNTCLR = LPTMR_PWMCNTCLR_CNTCLR_Msk) argument
222 #define LPTPWM_ENABLE_OUTPUT(lptmr, u32Channel) ((lptmr)->PWMPOCTL = (u32Channel)) argument
236 #define LPTPWM_SELECT_TOUT_PIN(lptmr, u32ToutSel) ((lptmr)->PWMPOCTL = ((lptmr)->PWMPOCTL & ~LPT… argument
252 #define LPTPWM_SET_OUTPUT_INVERSE(lptmr, u32Channel) ((lptmr)->PWMPOLCTL = (u32Channel)) argument
264 #define LPTPWM_ENABLE_PERIOD_INT(lptmr) ((lptmr)->PWMINTEN0 |= LPTMR_PWMINTEN0_PIEN_Msk) argument
276 #define LPTPWM_DISABLE_PERIOD_INT(lptmr) ((lptmr)->PWMINTEN0 &= ~LPTMR_PWMINTEN0_PIEN_Msk) argument
289 #define LPTPWM_GET_PERIOD_INT_FLAG(lptmr) (((lptmr)->PWMINTSTS0 & LPTMR_PWMINTSTS0_PIF_Msk)? 1 … argument
301 #define LPTPWM_CLEAR_PERIOD_INT_FLAG(lptmr) ((lptmr)->PWMINTSTS0 = LPTMR_PWMINTSTS0_PIF_Msk) argument
313 #define LPTPWM_ENABLE_CMP_UP_INT(lptmr) ((lptmr)->PWMINTEN0 |= LPTMR_PWMINTEN0_CMPUIEN_Msk) argument
325 #define LPTPWM_DISABLE_CMP_UP_INT(lptmr) ((lptmr)->PWMINTEN0 &= ~LPTMR_PWMINTEN0_CMPUIEN_Msk) argument
338 #define LPTPWM_GET_CMP_UP_INT_FLAG(lptmr) (((lptmr)->PWMINTSTS0 & LPTMR_PWMINTSTS0_CMPUIF_Msk)?… argument
350 #define LPTPWM_CLEAR_CMP_UP_INT_FLAG(lptmr) ((lptmr)->PWMINTSTS0 = LPTMR_PWMINTSTS0_CMPUIF_Msk) argument
363 #define LPTPWM_GET_REACH_MAX_CNT_STATUS(lptmr) (((lptmr)->PWMSTATUS & LPTMR_PWMSTATUS_CNTMAXF_Ms… argument
375 #define LPTPWM_CLEAR_REACH_MAX_CNT_STATUS(lptmr) ((lptmr)->PWMSTATUS = LPTMR_PWMSTATUS_CNTMAXF_Msk) argument
377 uint32_t LPTPWM_ConfigOutputFreqAndDuty(LPTMR_T *lptmr, uint32_t u32Frequency, uint32_t u32DutyCycl…
378 void LPTPWM_EnableCounter(LPTMR_T *lptmr);
379 void LPTPWM_DisableCounter(LPTMR_T *lptmr);
380 void LPTPWM_EnableTrigger(LPTMR_T *lptmr, uint32_t u32TargetMask, uint32_t u32Condition);
381 void LPTPWM_DisableTrigger(LPTMR_T *lptmr, uint32_t u32TargetMask);
396 #define LPTPWM_EnableTriggerLPPDMA(lptmr, u32Condition) LPTPWM_EnableTrigger(lptmr, LPTMR_PWMTRGCTL… argument
407 #define LPTPWM_DisableTriggerLPPDMA(lptmr) LPTPWM_DisableTrigger(lptmr, LPTMR_PWMTRGCT… argument
410 __STATIC_INLINE void LPTPWM_EnableWakeup(LPTMR_T *lptmr);
411 __STATIC_INLINE void LPTPWM_DisableWakeup(LPTMR_T *lptmr);
412 __STATIC_INLINE uint32_t LPTPWM_GetWakeupFlag(LPTMR_T *lptmr);
413 __STATIC_INLINE void LPTPWM_ClearWakeupFlag(LPTMR_T *lptmr);
427 __STATIC_INLINE void LPTPWM_EnableWakeup(LPTMR_T *lptmr) in LPTPWM_EnableWakeup() argument
429 lptmr->PWMCTL |= LPTMR_PWMCTL_PWMINTWKEN_Msk; in LPTPWM_EnableWakeup()
442 __STATIC_INLINE void LPTPWM_DisableWakeup(LPTMR_T *lptmr) in LPTPWM_DisableWakeup() argument
444 lptmr->PWMCTL &= ~LPTMR_PWMCTL_PWMINTWKEN_Msk; in LPTPWM_DisableWakeup()
458 __STATIC_INLINE uint32_t LPTPWM_GetWakeupFlag(LPTMR_T *lptmr) in LPTPWM_GetWakeupFlag() argument
460 return ((lptmr->PWMSTATUS & LPTMR_PWMSTATUS_PWMINTWKF_Msk) ? 1 : 0); in LPTPWM_GetWakeupFlag()
473 __STATIC_INLINE void LPTPWM_ClearWakeupFlag(LPTMR_T *lptmr) in LPTPWM_ClearWakeupFlag() argument
475 lptmr->PWMSTATUS = LPTMR_PWMSTATUS_PWMINTWKF_Msk; in LPTPWM_ClearWakeupFlag()
478 void LPTPWM_EnableAcc(LPTMR_T *lptmr, uint32_t u32IntFlagCnt, uint32_t u32IntAccSrc);
479 void LPTPWM_DisableAcc(LPTMR_T *lptmr);
480 void LPTPWM_EnableAccInt(LPTMR_T *lptmr);
481 void LPTPWM_DisableAccInt(LPTMR_T *lptmr);
482 void LPTPWM_ClearAccInt(LPTMR_T *lptmr);
483 uint32_t LPTPWM_GetAccInt(LPTMR_T *lptmr);
484 void LPTPWM_EnableAccLPPDMA(LPTMR_T *lptmr);
485 void LPTPWM_DisableAccPDMA(LPTMR_T *lptmr);
486 void LPTPWM_EnableAccStopMode(LPTMR_T *lptmr);
487 void LPTPWM_DisableAccStopMode(LPTMR_T *lptmr);