|
| #define | TPWM_CH0 |
| |
| #define | TPWM_CH1 |
| |
| #define | TPWM_UP_COUNT |
| |
| #define | TPWM_DOWN_COUNT |
| |
| #define | TPWM_UP_DOWN_COUNT |
| |
| #define | TPWM_AUTO_RELOAD_MODE |
| |
| #define | TPWM_ONE_SHOT_MODE |
| |
| #define | TPWM_OUTPUT_TOGGLE |
| |
| #define | TPWM_OUTPUT_NOTHING |
| |
| #define | TPWM_OUTPUT_LOW |
| |
| #define | TPWM_OUTPUT_HIGH |
| |
| #define | TPWM_TRIGGER_ADC_AT_ZERO_POINT |
| |
| #define | TPWM_TRIGGER_ADC_AT_PERIOD_POINT |
| |
| #define | TPWM_TRIGGER_ADC_AT_ZERO_OR_PERIOD_POINT |
| |
| #define | TPWM_TRIGGER_ADC_AT_COMPARE_UP_COUNT_POINT |
| |
| #define | TPWM_TRIGGER_ADC_AT_COMPARE_DOWN_COUNT_POINT |
| |
| #define | TPWM_BRAKE_SOURCE_EDGE_ACMP0 |
| |
| #define | TPWM_BRAKE_SOURCE_EDGE_ACMP1 |
| |
| #define | TPWM_BRAKE_SOURCE_EDGE_BKPIN |
| |
| #define | TPWM_BRAKE_SOURCE_EDGE_SYS_CSS |
| |
| #define | TPWM_BRAKE_SOURCE_EDGE_SYS_BOD |
| |
| #define | TPWM_BRAKE_SOURCE_EDGE_SYS_COR |
| |
| #define | TPWM_BRAKE_SOURCE_EDGE_SYS_RAM |
| |
| #define | TPWM_BRAKE_SOURCE_LEVEL_ACMP0 |
| |
| #define | TPWM_BRAKE_SOURCE_LEVEL_ACMP1 |
| |
| #define | TPWM_BRAKE_SOURCE_LEVEL_BKPIN |
| |
| #define | TPWM_BRAKE_SOURCE_LEVEL_SYS_CSS |
| |
| #define | TPWM_BRAKE_SOURCE_LEVEL_SYS_BOD |
| |
| #define | TPWM_BRAKE_SOURCE_LEVEL_SYS_COR |
| |
| #define | TPWM_BRAKE_SOURCE_LEVEL_SYS_RAM |
| |
| #define | TPWM_BRAKE_EDGE |
| |
| #define | TPWM_BRAKE_LEVEL |
| |
| #define | TPWM_LOAD_MODE_PERIOD |
| |
| #define | TPWM_LOAD_MODE_IMMEDIATE |
| |
| #define | TPWM_LOAD_MODE_CENTER |
| |
| #define | TPWM_BKP_DBCLK_PCLK_DIV_1 |
| |
| #define | TPWM_BKP_DBCLK_PCLK_DIV_2 |
| |
| #define | TPWM_BKP_DBCLK_PCLK_DIV_4 |
| |
| #define | TPWM_BKP_DBCLK_PCLK_DIV_8 |
| |
| #define | TPWM_BKP_DBCLK_PCLK_DIV_16 |
| |
| #define | TPWM_BKP_DBCLK_PCLK_DIV_32 |
| |
| #define | TPWM_BKP_DBCLK_PCLK_DIV_64 |
| |
| #define | TPWM_BKP_DBCLK_PCLK_DIV_128 |
| |
| #define | TPWM_TM_BRAKE0 |
| |
| #define | TPWM_TM_BRAKE1 |
| |
| #define | TPWM_TM_BRAKE2 |
| |
| #define | TPWM_TM_BRAKE3 |
| |
| #define | TPWM_CNTR_CLKSRC_TMR_CLK |
| |
| #define | TPWM_CNTR_CLKSRC_TIMER0_INT |
| |
| #define | TPWM_CNTR_CLKSRC_TIMER1_INT |
| |
| #define | TPWM_CNTR_CLKSRC_TIMER2_INT |
| |
| #define | TPWM_CNTR_CLKSRC_TIMER3_INT |
| |
| #define | TPWM_CNTR_SYNC_DISABLE |
| |
| #define | TPWM_CNTR_SYNC_START_BY_TIMER0 |
| |
| #define | TPWM_CNTR_SYNC_CLEAR_BY_TIMER0 |
| |
| #define | TPWM_CNTR_SYNC_START_BY_TIMER2 |
| |
| #define | TPWM_CNTR_SYNC_CLEAR_BY_TIMER2 |
| |
| #define | TPWM_ENABLE_PWM_MODE(timer) |
| | Enable PWM Counter Mode. More...
|
| |
| #define | TPWM_DISABLE_PWM_MODE(timer) |
| | Disable PWM Counter Mode. More...
|
| |
| #define | TPWM_ENABLE_INDEPENDENT_MODE(timer) |
| | Enable Independent Mode. More...
|
| |
| #define | TPWM_ENABLE_COMPLEMENTARY_MODE(timer) |
| | Enable Complementary Mode. More...
|
| |
| #define | TPWM_SET_COUNTER_TYPE(timer, type) |
| | Set Counter Type. More...
|
| |
| #define | TPWM_START_COUNTER(timer) |
| | Start PWM Counter. More...
|
| |
| #define | TPWM_STOP_COUNTER(timer) |
| | Stop PWM Counter. More...
|
| |
| #define | TPWM_SET_PRESCALER(timer, prescaler) |
| | Set Counter Clock Prescaler. More...
|
| |
| #define | TPWM_GET_PRESCALER(timer) |
| | Get Counter Clock Prescaler. More...
|
| |
| #define | TPWM_SET_PERIOD(timer, period) |
| | Set Counter Period. More...
|
| |
| #define | TPWM_GET_PERIOD(timer) |
| | Get Counter Period. More...
|
| |
| #define | TPWM_SET_CMPDAT(timer, cmp) |
| | Set Comparator Value. More...
|
| |
| #define | TPWM_GET_CMPDAT(timer) |
| | Get Comparator Value. More...
|
| |
| #define | TPWM_CLEAR_COUNTER(timer) |
| | Clear Counter. More...
|
| |
| #define | TPWM_SW_TRIGGER_BRAKE(timer, type) |
| | Software Trigger Brake Event. More...
|
| |
| #define | TPWM_ENABLE_OUTPUT(timer, ch) |
| | Enable Output Function. More...
|
| |
| #define | TPWM_SET_OUTPUT_INVERSE(timer, ch) |
| | Set Output Inverse. More...
|
| |
| #define | TPWM_SET_MASK_OUTPUT(timer, ch, level) |
| | Enable Output Function. More...
|
| |
| #define | TPWM_SET_COUNTER_SYNC_MODE(timer, mode) |
| | Set Counter Synchronous Mode. More...
|
| |
| #define | TPWM_TRIGGER_COUNTER_SYNC(timer) |
| | Trigger Counter Synchronous. More...
|
| |
| #define | TPWM_ENABLE_ZERO_INT(timer) |
| | Enable Zero Event Interrupt. More...
|
| |
| #define | TPWM_DISABLE_ZERO_INT(timer) |
| | Disable Zero Event Interrupt. More...
|
| |
| #define | TPWM_GET_ZERO_INT_FLAG(timer) |
| | Get Zero Event Interrupt Flag. More...
|
| |
| #define | TPWM_CLEAR_ZERO_INT_FLAG(timer) |
| | Clear Zero Event Interrupt Flag. More...
|
| |
| #define | TPWM_ENABLE_PERIOD_INT(timer) |
| | Enable Period Event Interrupt. More...
|
| |
| #define | TPWM_DISABLE_PERIOD_INT(timer) |
| | Disable Period Event Interrupt. More...
|
| |
| #define | TPWM_GET_PERIOD_INT_FLAG(timer) |
| | Get Period Event Interrupt Flag. More...
|
| |
| #define | TPWM_CLEAR_PERIOD_INT_FLAG(timer) |
| | Clear Period Event Interrupt Flag. More...
|
| |
| #define | TPWM_ENABLE_CMP_UP_INT(timer) |
| | Enable Compare Up Event Interrupt. More...
|
| |
| #define | TPWM_DISABLE_CMP_UP_INT(timer) |
| | Disable Compare Up Event Interrupt. More...
|
| |
| #define | TPWM_GET_CMP_UP_INT_FLAG(timer) |
| | Get Compare Up Event Interrupt Flag. More...
|
| |
| #define | TPWM_CLEAR_CMP_UP_INT_FLAG(timer) |
| | Clear Compare Up Event Interrupt Flag. More...
|
| |
| #define | TPWM_ENABLE_CMP_DOWN_INT(timer) |
| | Enable Compare Down Event Interrupt. More...
|
| |
| #define | TPWM_DISABLE_CMP_DOWN_INT(timer) |
| | Disable Compare Down Event Interrupt. More...
|
| |
| #define | TPWM_GET_CMP_DOWN_INT_FLAG(timer) |
| | Get Compare Down Event Interrupt Flag. More...
|
| |
| #define | TPWM_CLEAR_CMP_DOWN_INT_FLAG(timer) |
| | Clear Compare Down Event Interrupt Flag. More...
|
| |
| #define | TPWM_GET_REACH_MAX_CNT_STATUS(timer) |
| | Get Counter Reach Maximum Count Status. More...
|
| |
| #define | TPWM_CLEAR_REACH_MAX_CNT_STATUS(timer) |
| | Clear Counter Reach Maximum Count Status. More...
|
| |
| #define | TPWM_GET_TRG_ADC_STATUS(timer) |
| | Get Trigger ADC Status. More...
|
| |
| #define | TPWM_CLEAR_TRG_ADC_STATUS(timer) |
| | Clear Trigger ADC Status. More...
|
| |
| #define | TPWM_SET_BRAKE_PIN_HIGH_DETECT(timer) |
| | Set Brake Event at Brake Pin High or Low-to-High. More...
|
| |
| #define | TPWM_SET_BRAKE_PIN_LOW_DETECT(timer) |
| | Set Brake Event at Brake Pin Low or High-to-Low. More...
|
| |
| #define | TPWM_SET_BRAKE_PIN_SOURCE(timer, pin) |
| | Set External Brake Pin Source. More...
|
| |
|
| void | TPWM_SetCounterClockSource (TIMER_T *timer, uint32_t u32CntClkSrc) |
| | Set PWM Counter Clock Source. More...
|
| |
| uint32_t | TPWM_ConfigOutputFreqAndDuty (TIMER_T *timer, uint32_t u32Frequency, uint32_t u32DutyCycle) |
| | Configure PWM Output Frequency and Duty Cycle. More...
|
| |
| void | TPWM_EnableDeadTime (TIMER_T *timer, uint32_t u32DTCount) |
| | Enable Dead-Time Function. More...
|
| |
| void | TPWM_EnableDeadTimeWithPrescale (TIMER_T *timer, uint32_t u32DTCount) |
| | Enable Dead-Time Function. More...
|
| |
| void | TPWM_DisableDeadTime (TIMER_T *timer) |
| | Disable Dead-Time Function. More...
|
| |
| void | TPWM_EnableCounter (TIMER_T *timer) |
| | Enable PWM Counter. More...
|
| |
| void | TPWM_DisableCounter (TIMER_T *timer) |
| | Disable PWM Generator. More...
|
| |
| void | TPWM_EnableTriggerADC (TIMER_T *timer, uint32_t u32Condition) |
| | Enable Trigger ADC. More...
|
| |
| void | TPWM_DisableTriggerADC (TIMER_T *timer) |
| | Disable Trigger ADC. More...
|
| |
| void | TPWM_EnableFaultBrake (TIMER_T *timer, uint32_t u32CH0Level, uint32_t u32CH1Level, uint32_t u32BrakeSource) |
| | Enable Fault Brake Function. More...
|
| |
| void | TPWM_EnableFaultBrakeInt (TIMER_T *timer, uint32_t u32IntSource) |
| | Enable Fault Brake Interrupt. More...
|
| |
| void | TPWM_DisableFaultBrakeInt (TIMER_T *timer, uint32_t u32IntSource) |
| | Disable Fault Brake Interrupt. More...
|
| |
| uint32_t | TPWM_GetFaultBrakeIntFlag (TIMER_T *timer, uint32_t u32IntSource) |
| | Indicate Fault Brake Interrupt Flag. More...
|
| |
| void | TPWM_ClearFaultBrakeIntFlag (TIMER_T *timer, uint32_t u32IntSource) |
| | Clear Fault Brake Interrupt Flags. More...
|
| |
| void | TPWM_SetLoadMode (TIMER_T *timer, uint32_t u32LoadMode) |
| | Enable load mode of selected channel. More...
|
| |
| void | TPWM_EnableBrakePinDebounce (TIMER_T *timer, uint32_t u32BrakePinSrc, uint32_t u32DebounceCnt, uint32_t u32ClkSrcSel) |
| | Enable brake pin noise filter function. More...
|
| |
| void | TPWM_DisableBrakePinDebounce (TIMER_T *timer) |
| | Disable brake pin noise filter function. More...
|
| |
| void | TPWM_EnableBrakePinInverse (TIMER_T *timer) |
| | Enable brake pin inverse function. More...
|
| |
| void | TPWM_DisableBrakePinInverse (TIMER_T *timer) |
| | Disable brake pin inverse function. More...
|
| |
| void | TPWM_SetBrakePinSource (TIMER_T *timer, uint32_t u32BrakePinNum) |
| | Set brake pin source. More...
|
| |
M480 series Timer PWM Controller(Timer PWM) driver header file.
- Version
- V1.00 SPDX-License-Identifier: Apache-2.0
- Copyright
- (C) 2016-2020 Nuvoton Technology Corp. All rights reserved.
Definition in file timer_pwm.h.