| /hal_nuvoton-latest/m2l31x/StdDriver/inc/ |
| D | timer_pwm.h | 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 [all …]
|
| D | timer.h | 110 #define TIMER_SET_CMP_VALUE(timer, u32Value) ((timer)->CMP = (u32Value)) argument 124 #define TIMER_SET_PRESCALE_VALUE(timer, u32Value) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_PSC_… argument 137 #define TIMER_IS_ACTIVE(timer) (((timer)->CTL & TIMER_CTL_ACTSTS_Msk) ? 1 : 0) argument 152 #define TIMER_SELECT_TOUT_PIN(timer, u32ToutSel) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_TGLP… argument 167 #define TIMER_SET_OPMODE(timer, u32OpMode) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_OPMODE_Msk)… argument 202 __STATIC_INLINE void TIMER_Start(TIMER_T *timer) in TIMER_Start() 216 __STATIC_INLINE void TIMER_Stop(TIMER_T *timer) in TIMER_Stop() 232 __STATIC_INLINE void TIMER_EnableWakeup(TIMER_T *timer) in TIMER_EnableWakeup() 246 __STATIC_INLINE void TIMER_DisableWakeup(TIMER_T *timer) in TIMER_DisableWakeup() 260 __STATIC_INLINE void TIMER_StartCapture(TIMER_T *timer) in TIMER_StartCapture() [all …]
|
| /hal_nuvoton-latest/m46x/StdDriver/src/ |
| D | timer_pwm.c | 39 void TPWM_SetCounterClockSource(TIMER_T *timer, uint32_t u32CntClkSrc) in TPWM_SetCounterClockSource() 56 uint32_t TPWM_ConfigOutputFreqAndDuty(TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle) in TPWM_ConfigOutputFreqAndDuty() 119 void TPWM_EnableDeadTime(TIMER_T *timer, uint32_t u32DTCount) in TPWM_EnableDeadTime() 135 void TPWM_EnableDeadTimeWithPrescale(TIMER_T *timer, uint32_t u32DTCount) in TPWM_EnableDeadTimeWithPrescale() 150 void TPWM_DisableDeadTime(TIMER_T *timer) in TPWM_DisableDeadTime() 164 void TPWM_EnableCounter(TIMER_T *timer) in TPWM_EnableCounter() 178 void TPWM_DisableCounter(TIMER_T *timer) in TPWM_DisableCounter() 198 void TPWM_EnableTriggerADC(TIMER_T *timer, uint32_t u32Condition) in TPWM_EnableTriggerADC() 212 void TPWM_DisableTriggerADC(TIMER_T *timer) in TPWM_DisableTriggerADC() 252 void TPWM_EnableFaultBrake(TIMER_T *timer, uint32_t u32CH0Level, uint32_t u32CH1Level, uint32_t u32… in TPWM_EnableFaultBrake() [all …]
|
| D | timer.c | 42 uint32_t TIMER_Open(TIMER_T *timer, uint32_t u32Mode, uint32_t u32Freq) in TIMER_Open() 75 void TIMER_Close(TIMER_T *timer) in TIMER_Close() 94 int32_t TIMER_Delay(TIMER_T *timer, uint32_t u32Usec) in TIMER_Delay() 194 void TIMER_EnableCapture(TIMER_T *timer, uint32_t u32CapMode, uint32_t u32Edge) in TIMER_EnableCapture() 209 void TIMER_DisableCapture(TIMER_T *timer) in TIMER_DisableCapture() 228 void TIMER_EnableEventCounter(TIMER_T *timer, uint32_t u32Edge) in TIMER_EnableEventCounter() 243 void TIMER_DisableEventCounter(TIMER_T *timer) in TIMER_DisableEventCounter() 258 uint32_t TIMER_GetModuleClock(TIMER_T *timer) in TIMER_GetModuleClock() 312 void TIMER_EnableFreqCounter(TIMER_T *timer, in TIMER_EnableFreqCounter() 333 void TIMER_DisableFreqCounter(TIMER_T *timer) in TIMER_DisableFreqCounter() [all …]
|
| /hal_nuvoton-latest/m48x/StdDriver/inc/ |
| D | timer_pwm.h | 151 #define TPWM_ENABLE_PWM_MODE(timer) ((timer)->ALTCTL = (1 << TIMER_ALTCTL_FUNCSEL_Pos)) argument 164 #define TPWM_DISABLE_PWM_MODE(timer) ((timer)->ALTCTL = (0 << TIMER_ALTCTL_FUNCSEL_Pos)) argument 176 #define TPWM_ENABLE_INDEPENDENT_MODE(timer) ((timer)->PWMCTL &= ~(1 << TIMER_PWMCTL_OUTMODE_Pos… argument 188 #define TPWM_ENABLE_COMPLEMENTARY_MODE(timer) ((timer)->PWMCTL |= (1 << TIMER_PWMCTL_OUTMODE_Pos)) argument 204 #define TPWM_SET_COUNTER_TYPE(timer, type) ((timer)->PWMCTL = ((timer)->PWMCTL & ~TIMER_PWMCTL… argument 216 #define TPWM_START_COUNTER(timer) ((timer)->PWMCTL |= TIMER_PWMCTL_CNTEN_Msk) argument 228 #define TPWM_STOP_COUNTER(timer) ((timer)->PWMPERIOD = 0x0) argument 243 #define TPWM_SET_PRESCALER(timer, prescaler) ((timer)->PWMCLKPSC = (prescaler)) argument 255 #define TPWM_GET_PRESCALER(timer) ((timer)->PWMCLKPSC) argument 269 #define TPWM_SET_PERIOD(timer, period) ((timer)->PWMPERIOD = (period)) argument [all …]
|
| D | timer.h | 79 #define TIMER_SET_CMP_VALUE(timer, u32Value) ((timer)->CMP = (u32Value)) argument 93 #define TIMER_SET_PRESCALE_VALUE(timer, u32Value) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_PSC_… argument 106 #define TIMER_IS_ACTIVE(timer) (((timer)->CTL & TIMER_CTL_ACTSTS_Msk)? 1 : 0) argument 121 #define TIMER_SELECT_TOUT_PIN(timer, u32ToutSel) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_TGLP… argument 136 #define TIMER_SET_OPMODE(timer, u32OpMode) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_OPMODE_Msk)… argument 172 __STATIC_INLINE void TIMER_Start(TIMER_T *timer) in TIMER_Start() 186 __STATIC_INLINE void TIMER_Stop(TIMER_T *timer) in TIMER_Stop() 202 __STATIC_INLINE void TIMER_EnableWakeup(TIMER_T *timer) in TIMER_EnableWakeup() 216 __STATIC_INLINE void TIMER_DisableWakeup(TIMER_T *timer) in TIMER_DisableWakeup() 230 __STATIC_INLINE void TIMER_StartCapture(TIMER_T *timer) in TIMER_StartCapture() [all …]
|
| /hal_nuvoton-latest/m46x/StdDriver/inc/ |
| D | timer_pwm.h | 177 #define TPWM_ENABLE_PWM_MODE(timer) ((timer)->ALTCTL = (1 << TIMER_ALTCTL_FUNCSEL_Pos)) argument 190 #define TPWM_DISABLE_PWM_MODE(timer) ((timer)->ALTCTL = (0 << TIMER_ALTCTL_FUNCSEL_Pos)) argument 202 #define TPWM_ENABLE_INDEPENDENT_MODE(timer) ((timer)->PWMCTL &= ~(1 << TIMER_PWMCTL_OUTMODE_Pos… argument 214 #define TPWM_ENABLE_COMPLEMENTARY_MODE(timer) ((timer)->PWMCTL |= (1 << TIMER_PWMCTL_OUTMODE_Pos)) argument 230 #define TPWM_SET_COUNTER_TYPE(timer, type) ((timer)->PWMCTL = ((timer)->PWMCTL & ~TIMER_PWMCTL… argument 242 #define TPWM_START_COUNTER(timer) ((timer)->PWMCTL |= TIMER_PWMCTL_CNTEN_Msk) argument 254 #define TPWM_STOP_COUNTER(timer) ((timer)->PWMPERIOD = 0x0) argument 269 #define TPWM_SET_PRESCALER(timer, prescaler) ((timer)->PWMCLKPSC = (prescaler)) argument 281 #define TPWM_GET_PRESCALER(timer) ((timer)->PWMCLKPSC) argument 295 #define TPWM_SET_PERIOD(timer, period) ((timer)->PWMPERIOD = (period)) argument [all …]
|
| D | timer.h | 112 #define TIMER_SET_CMP_VALUE(timer, u32Value) ((timer)->CMP = (u32Value)) argument 126 #define TIMER_SET_PRESCALE_VALUE(timer, u32Value) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_PSC_… argument 139 #define TIMER_IS_ACTIVE(timer) (((timer)->CTL & TIMER_CTL_ACTSTS_Msk)? 1 : 0) argument 154 #define TIMER_SELECT_TOUT_PIN(timer, u32ToutSel) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_TGLP… argument 169 #define TIMER_SET_OPMODE(timer, u32OpMode) ((timer)->CTL = ((timer)->CTL & ~TIMER_CTL_OPMODE_Msk)… argument 204 __STATIC_INLINE void TIMER_Start(TIMER_T *timer) in TIMER_Start() 218 __STATIC_INLINE void TIMER_Stop(TIMER_T *timer) in TIMER_Stop() 234 __STATIC_INLINE void TIMER_EnableWakeup(TIMER_T *timer) in TIMER_EnableWakeup() 248 __STATIC_INLINE void TIMER_DisableWakeup(TIMER_T *timer) in TIMER_DisableWakeup() 262 __STATIC_INLINE void TIMER_StartCapture(TIMER_T *timer) in TIMER_StartCapture() [all …]
|
| /hal_nuvoton-latest/m48x/StdDriver/src/ |
| D | timer_pwm.c | 38 void TPWM_SetCounterClockSource(TIMER_T *timer, uint32_t u32CntClkSrc) in TPWM_SetCounterClockSource() 55 uint32_t TPWM_ConfigOutputFreqAndDuty(TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle) in TPWM_ConfigOutputFreqAndDuty() 118 void TPWM_EnableDeadTime(TIMER_T *timer, uint32_t u32DTCount) in TPWM_EnableDeadTime() 134 void TPWM_EnableDeadTimeWithPrescale(TIMER_T *timer, uint32_t u32DTCount) in TPWM_EnableDeadTimeWithPrescale() 149 void TPWM_DisableDeadTime(TIMER_T *timer) in TPWM_DisableDeadTime() 163 void TPWM_EnableCounter(TIMER_T *timer) in TPWM_EnableCounter() 177 void TPWM_DisableCounter(TIMER_T *timer) in TPWM_DisableCounter() 197 void TPWM_EnableTriggerADC(TIMER_T *timer, uint32_t u32Condition) in TPWM_EnableTriggerADC() 211 void TPWM_DisableTriggerADC(TIMER_T *timer) in TPWM_DisableTriggerADC() 251 void TPWM_EnableFaultBrake(TIMER_T *timer, uint32_t u32CH0Level, uint32_t u32CH1Level, uint32_t u32… in TPWM_EnableFaultBrake() [all …]
|
| D | timer.c | 41 uint32_t TIMER_Open(TIMER_T *timer, uint32_t u32Mode, uint32_t u32Freq) in TIMER_Open() 74 void TIMER_Close(TIMER_T *timer) in TIMER_Close() 92 void TIMER_Delay(TIMER_T *timer, uint32_t u32Usec) in TIMER_Delay() 174 void TIMER_EnableCapture(TIMER_T *timer, uint32_t u32CapMode, uint32_t u32Edge) in TIMER_EnableCapture() 189 void TIMER_DisableCapture(TIMER_T *timer) in TIMER_DisableCapture() 208 void TIMER_EnableEventCounter(TIMER_T *timer, uint32_t u32Edge) in TIMER_EnableEventCounter() 223 void TIMER_DisableEventCounter(TIMER_T *timer) in TIMER_DisableEventCounter() 238 uint32_t TIMER_GetModuleClock(TIMER_T *timer) in TIMER_GetModuleClock() 294 void TIMER_EnableFreqCounter(TIMER_T *timer, in TIMER_EnableFreqCounter() 314 void TIMER_DisableFreqCounter(TIMER_T *timer) in TIMER_DisableFreqCounter() [all …]
|
| /hal_nuvoton-latest/m2l31x/StdDriver/src/ |
| D | timer_pwm.c | 36 uint32_t TPWM_ConfigOutputFreqAndDuty(TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle) in TPWM_ConfigOutputFreqAndDuty() 101 void TPWM_EnableCounter(TIMER_T *timer) in TPWM_EnableCounter() 115 void TPWM_DisableCounter(TIMER_T *timer) in TPWM_DisableCounter() 137 void TPWM_EnableTrigger(TIMER_T *timer, uint32_t u32TargetMask, uint32_t u32Condition) in TPWM_EnableTrigger() 157 void TPWM_DisableTrigger(TIMER_T *timer, uint32_t u32TargetMask) in TPWM_DisableTrigger() 172 void TPWM_EnableAcc(TIMER_T *timer, uint32_t u32IntFlagCnt, uint32_t u32IntAccSrc) in TPWM_EnableAcc() 184 void TPWM_DisableAcc(TIMER_T *timer) in TPWM_DisableAcc() 195 void TPWM_EnableAccInt(TIMER_T *timer) in TPWM_EnableAccInt() 206 void TPWM_DisableAccInt(TIMER_T *timer) in TPWM_DisableAccInt() 217 void TPWM_ClearAccInt(TIMER_T *timer) in TPWM_ClearAccInt() [all …]
|
| D | timer.c | 42 uint32_t TIMER_Open(TIMER_T *timer, uint32_t u32Mode, uint32_t u32Freq) in TIMER_Open() 76 void TIMER_Close(TIMER_T *timer) in TIMER_Close() 97 int32_t TIMER_Delay(TIMER_T *timer, uint32_t u32Usec) in TIMER_Delay() 202 void TIMER_EnableCapture(TIMER_T *timer, uint32_t u32CapMode, uint32_t u32Edge) in TIMER_EnableCapture() 218 void TIMER_DisableCapture(TIMER_T *timer) in TIMER_DisableCapture() 238 void TIMER_EnableEventCounter(TIMER_T *timer, uint32_t u32Edge) in TIMER_EnableEventCounter() 254 void TIMER_DisableEventCounter(TIMER_T *timer) in TIMER_DisableEventCounter() 270 uint32_t TIMER_GetModuleClock(TIMER_T *timer) in TIMER_GetModuleClock() 325 void TIMER_EnableFreqCounter(TIMER_T *timer, in TIMER_EnableFreqCounter() 347 void TIMER_DisableFreqCounter(TIMER_T *timer) in TIMER_DisableFreqCounter() [all …]
|