Lines Matching refs:lptmr
36 uint32_t LPTPWM_ConfigOutputFreqAndDuty(LPTMR_T *lptmr, uint32_t u32Frequency, uint32_t u32DutyCycl… in LPTPWM_ConfigOutputFreqAndDuty() argument
43 if (lptmr == LPTMR0) in LPTPWM_ConfigOutputFreqAndDuty()
47 else if (lptmr == LPTMR1) in LPTPWM_ConfigOutputFreqAndDuty()
76 …lptmr->PWMCTL = (lptmr->PWMCTL & ~LPTMR_PWMCTL_CNTMODE_Msk) | (LPTPWM_AUTO_RELOAD_MODE << LPTMR_PW… in LPTPWM_ConfigOutputFreqAndDuty()
79 LPTPWM_SET_PRESCALER(lptmr, (u32Prescaler - 1UL)); in LPTPWM_ConfigOutputFreqAndDuty()
81 LPTPWM_SET_PERIOD(lptmr, (u32Period - 1UL)); in LPTPWM_ConfigOutputFreqAndDuty()
92 LPTPWM_SET_CMPDAT(lptmr, u32CMP); in LPTPWM_ConfigOutputFreqAndDuty()
105 void LPTPWM_EnableCounter(LPTMR_T *lptmr) in LPTPWM_EnableCounter() argument
107 lptmr->PWMCTL |= LPTMR_PWMCTL_CNTEN_Msk; in LPTPWM_EnableCounter()
119 void LPTPWM_DisableCounter(LPTMR_T *lptmr) in LPTPWM_DisableCounter() argument
121 lptmr->PWMCTL &= ~LPTMR_PWMCTL_CNTEN_Msk; in LPTPWM_DisableCounter()
138 void LPTPWM_EnableTrigger(LPTMR_T *lptmr, uint32_t u32TargetMask, uint32_t u32Condition) in LPTPWM_EnableTrigger() argument
140 …lptmr->PWMTRGCTL &= ~( LPTMR_PWMTRGCTL_PWMTRGLPPDMA_Msk | LPTMR_PWMTRGCTL_TRGEN_Msk| LPTMR_PWMTRGC… in LPTPWM_EnableTrigger()
141 lptmr->PWMTRGCTL |= (u32TargetMask) | (u32Condition); in LPTPWM_EnableTrigger()
155 void LPTPWM_DisableTrigger(LPTMR_T *lptmr, uint32_t u32TargetMask) in LPTPWM_DisableTrigger() argument
157 lptmr->PWMTRGCTL &= ~(u32TargetMask); in LPTPWM_DisableTrigger()
170 void LPTPWM_EnableAcc(LPTMR_T *lptmr, uint32_t u32IntFlagCnt, uint32_t u32IntAccSrc) in LPTPWM_EnableAcc() argument
172 …lptmr->PWMIFA = (((lptmr)->PWMIFA & ~(LPTMR_PWMIFA_IFACNT_Msk | LPTMR_PWMIFA_IFASEL_Msk | LPTMR_PW… in LPTPWM_EnableAcc()
182 void LPTPWM_DisableAcc(LPTMR_T *lptmr) in LPTPWM_DisableAcc() argument
184 lptmr->PWMIFA &= ~LPTMR_PWMIFA_IFAEN_Msk; in LPTPWM_DisableAcc()
193 void LPTPWM_EnableAccInt(LPTMR_T *lptmr) in LPTPWM_EnableAccInt() argument
195 lptmr->PWMAINTEN |= LPTMR_PWMAINTEN_IFAIEN_Msk; in LPTPWM_EnableAccInt()
204 void LPTPWM_DisableAccInt(LPTMR_T *lptmr) in LPTPWM_DisableAccInt() argument
206 lptmr->PWMAINTEN &= ~LPTMR_PWMAINTEN_IFAIEN_Msk; in LPTPWM_DisableAccInt()
215 void LPTPWM_ClearAccInt(LPTMR_T *lptmr) in LPTPWM_ClearAccInt() argument
217 lptmr->PWMAINTSTS = LPTMR_PWMAINTSTS_IFAIF_Msk; in LPTPWM_ClearAccInt()
227 uint32_t LPTPWM_GetAccInt(LPTMR_T *lptmr) in LPTPWM_GetAccInt() argument
229 return (((lptmr)->PWMAINTSTS & LPTMR_PWMAINTSTS_IFAIF_Msk)? 1UL : 0UL); in LPTPWM_GetAccInt()
238 void LPTPWM_EnableAccLPPDMA(LPTMR_T *lptmr) in LPTPWM_EnableAccLPPDMA() argument
240 lptmr->PWMAPDMACTL |= LPTMR_PWMAPDMACTL_APDMAEN_Msk; in LPTPWM_EnableAccLPPDMA()
249 void LPTPWM_DisableAccPDMA(LPTMR_T *lptmr) in LPTPWM_DisableAccPDMA() argument
251 lptmr->PWMAPDMACTL &= ~LPTMR_PWMAPDMACTL_APDMAEN_Msk; in LPTPWM_DisableAccPDMA()
260 void LPTPWM_EnableAccStopMode(LPTMR_T *lptmr) in LPTPWM_EnableAccStopMode() argument
262 lptmr->PWMIFA |= LPTMR_PWMIFA_STPMOD_Msk; in LPTPWM_EnableAccStopMode()
271 void LPTPWM_DisableAccStopMode(LPTMR_T *lptmr) in LPTPWM_DisableAccStopMode() argument
273 lptmr->PWMIFA &= ~LPTMR_PWMIFA_STPMOD_Msk; in LPTPWM_DisableAccStopMode()