Lines Matching refs:u32ChannelNum

35 uint32_t BPWM_ConfigCaptureChannel(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, …  in BPWM_ConfigCaptureChannel()  argument
42 (void)u32ChannelNum; in BPWM_ConfigCaptureChannel()
110 BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescale); in BPWM_ConfigCaptureChannel()
115 BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR); in BPWM_ConfigCaptureChannel()
134 uint32_t BPWM_ConfigOutputChannel(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint… in BPWM_ConfigOutputChannel() argument
185 BPWM_SET_PRESCALER(bpwm, u32ChannelNum, u32Prescale); in BPWM_ConfigOutputChannel()
190 BPWM_SET_CNR(bpwm, u32ChannelNum, u32CNR); in BPWM_ConfigOutputChannel()
191 BPWM_SET_CMR(bpwm, u32ChannelNum, u32DutyCycle * (u32CNR + 1UL) / 100UL); in BPWM_ConfigOutputChannel()
194 …bpwm)->WGCTL0 & ~((BPWM_WGCTL0_PRDPCTL0_Msk | BPWM_WGCTL0_ZPCTL0_Msk) << (u32ChannelNum << 1))) | \ in BPWM_ConfigOutputChannel()
195 (BPWM_OUTPUT_HIGH << (u32ChannelNum << 1UL << BPWM_WGCTL0_ZPCTL0_Pos)); in BPWM_ConfigOutputChannel()
196 …wm)->WGCTL1 & ~((BPWM_WGCTL1_CMPDCTL0_Msk | BPWM_WGCTL1_CMPUCTL0_Msk) << (u32ChannelNum << 1))) | \ in BPWM_ConfigOutputChannel()
197 (BPWM_OUTPUT_LOW << (u32ChannelNum << 1UL << BPWM_WGCTL1_CMPUCTL0_Pos)); in BPWM_ConfigOutputChannel()
267 void BPWM_EnableADCTrigger(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32Condition) in BPWM_EnableADCTrigger() argument
269 if(u32ChannelNum < 4UL) in BPWM_EnableADCTrigger()
271 (bpwm)->EADCTS0 &= ~((BPWM_EADCTS0_TRGSEL0_Msk) << (u32ChannelNum << 3)); in BPWM_EnableADCTrigger()
272 (bpwm)->EADCTS0 |= ((BPWM_EADCTS0_TRGEN0_Msk | u32Condition) << (u32ChannelNum << 3)); in BPWM_EnableADCTrigger()
276 (bpwm)->EADCTS1 &= ~((BPWM_EADCTS1_TRGSEL4_Msk) << ((u32ChannelNum - 4UL) << 3)); in BPWM_EnableADCTrigger()
277 … (bpwm)->EADCTS1 |= ((BPWM_EADCTS1_TRGEN4_Msk | u32Condition) << ((u32ChannelNum - 4UL) << 3)); in BPWM_EnableADCTrigger()
290 void BPWM_DisableADCTrigger(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_DisableADCTrigger() argument
292 if(u32ChannelNum < 4UL) in BPWM_DisableADCTrigger()
294 (bpwm)->EADCTS0 &= ~(BPWM_EADCTS0_TRGEN0_Msk << (u32ChannelNum << 3)); in BPWM_DisableADCTrigger()
298 (bpwm)->EADCTS1 &= ~(BPWM_EADCTS1_TRGEN4_Msk << ((u32ChannelNum - 4UL) << 3)); in BPWM_DisableADCTrigger()
312 void BPWM_ClearADCTriggerFlag(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32Condition) in BPWM_ClearADCTriggerFlag() argument
315 (bpwm)->STATUS = (BPWM_STATUS_EADCTRG0_Msk << u32ChannelNum); in BPWM_ClearADCTriggerFlag()
328 uint32_t BPWM_GetADCTriggerFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_GetADCTriggerFlag() argument
330 return (((bpwm)->STATUS & (BPWM_STATUS_EADCTRG0_Msk << u32ChannelNum)) ? 1UL : 0UL); in BPWM_GetADCTriggerFlag()
407 void BPWM_EnableCaptureInt(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32Edge) in BPWM_EnableCaptureInt() argument
409 (bpwm)->CAPIEN |= (u32Edge << u32ChannelNum); in BPWM_EnableCaptureInt()
424 void BPWM_DisableCaptureInt(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32Edge) in BPWM_DisableCaptureInt() argument
426 (bpwm)->CAPIEN &= ~(u32Edge << u32ChannelNum); in BPWM_DisableCaptureInt()
441 void BPWM_ClearCaptureIntFlag(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32Edge) in BPWM_ClearCaptureIntFlag() argument
443 (bpwm)->CAPIF = (u32Edge << u32ChannelNum); in BPWM_ClearCaptureIntFlag()
458 uint32_t BPWM_GetCaptureIntFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_GetCaptureIntFlag() argument
462 u32CapIf = ((((bpwm)->CAPIF & (BPWM_CAPIF_CAPFIF0_Msk << u32ChannelNum)) ? 1UL : 0UL) << 1); in BPWM_GetCaptureIntFlag()
463 u32CapIf |= (((bpwm)->CAPIF & (BPWM_CAPIF_CAPRIF0_Msk << u32ChannelNum)) ? 1UL : 0UL); in BPWM_GetCaptureIntFlag()
479 void BPWM_EnableDutyInt(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32IntDutyType) in BPWM_EnableDutyInt() argument
481 (bpwm)->INTEN |= (u32IntDutyType << u32ChannelNum); in BPWM_EnableDutyInt()
493 void BPWM_DisableDutyInt(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_DisableDutyInt() argument
495 …32_t)(~((BPWM_DUTY_INT_DOWN_COUNT_MATCH_CMP | BPWM_DUTY_INT_UP_COUNT_MATCH_CMP) << u32ChannelNum)); in BPWM_DisableDutyInt()
507 void BPWM_ClearDutyIntFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_ClearDutyIntFlag() argument
509 (bpwm)->INTSTS = (BPWM_INTSTS_CMPUIF0_Msk | BPWM_INTSTS_CMPDIF0_Msk) << u32ChannelNum; in BPWM_ClearDutyIntFlag()
523 uint32_t BPWM_GetDutyIntFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_GetDutyIntFlag() argument
525 …wm)->INTSTS & ((BPWM_INTSTS_CMPDIF0_Msk | BPWM_INTSTS_CMPUIF0_Msk) << u32ChannelNum))) ? 1UL : 0UL… in BPWM_GetDutyIntFlag()
539 void BPWM_EnablePeriodInt(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32IntPeriodType) in BPWM_EnablePeriodInt() argument
541 (void)u32ChannelNum; in BPWM_EnablePeriodInt()
556 void BPWM_DisablePeriodInt(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_DisablePeriodInt() argument
558 (void)u32ChannelNum; in BPWM_DisablePeriodInt()
572 void BPWM_ClearPeriodIntFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_ClearPeriodIntFlag() argument
574 (void)u32ChannelNum; in BPWM_ClearPeriodIntFlag()
590 uint32_t BPWM_GetPeriodIntFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_GetPeriodIntFlag() argument
592 (void)u32ChannelNum; in BPWM_GetPeriodIntFlag()
606 void BPWM_EnableZeroInt(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_EnableZeroInt() argument
608 (void)u32ChannelNum; in BPWM_EnableZeroInt()
622 void BPWM_DisableZeroInt(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_DisableZeroInt() argument
624 (void)u32ChannelNum; in BPWM_DisableZeroInt()
638 void BPWM_ClearZeroIntFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_ClearZeroIntFlag() argument
640 (void)u32ChannelNum; in BPWM_ClearZeroIntFlag()
656 uint32_t BPWM_GetZeroIntFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_GetZeroIntFlag() argument
658 (void)u32ChannelNum; in BPWM_GetZeroIntFlag()
674 void BPWM_EnableLoadMode(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32LoadMode) in BPWM_EnableLoadMode() argument
676 (bpwm)->CTL0 |= (u32LoadMode << u32ChannelNum); in BPWM_EnableLoadMode()
691 void BPWM_DisableLoadMode(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32LoadMode) in BPWM_DisableLoadMode() argument
693 (bpwm)->CTL0 &= ~(u32LoadMode << u32ChannelNum); in BPWM_DisableLoadMode()
712 void BPWM_SetClockSource(BPWM_T *bpwm, uint32_t u32ChannelNum, uint32_t u32ClkSrcSel) in BPWM_SetClockSource() argument
714 (void)u32ChannelNum; in BPWM_SetClockSource()
730 uint32_t BPWM_GetWrapAroundFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_GetWrapAroundFlag() argument
732 (void)u32ChannelNum; in BPWM_GetWrapAroundFlag()
746 void BPWM_ClearWrapAroundFlag(BPWM_T *bpwm, uint32_t u32ChannelNum) in BPWM_ClearWrapAroundFlag() argument
748 (void)u32ChannelNum; in BPWM_ClearWrapAroundFlag()