TIM Exported Types
- group TIM_Exported_Types
-
struct TIM_TimeBaseInitTypeDef
TIM init structure definition.
Public Members
-
TIMClockSrc_TypeDef TIM_ClockSrc
Specify the clock source. This parameter can be a value of TIM Clock Source. The calculation formula for timer clock is as follows: TIM clock = TIM_ClockSrc / TIM_SOURCE_DIV.
-
TIMClockDiv_TypeDef TIM_SOURCE_DIV
Specify the clock source div. This parameter can be a value of TIM Clock Divider.
-
FunctionalState TIM_SOURCE_DIV_En
Enable or disable timer source clock divider. This parameter can be a value of DISABLE or ENABLE.
-
TIMMode_TypeDef TIM_Mode
Specify the counter mode. This parameter can be a value of TIM Mode.
-
FunctionalState TIM_PWM_En
Enable or disable the PWM mode. This parameter can be a value of DISABLE or ENABLE.
-
uint32_t TIM_Period
Specify the period value to be loaded into the active Auto-Reload Register at the next update event. This parameter must range from 0x0 to 0xFFFFFFFF.
-
uint32_t TIM_PWM_High_Count
Specify the PWM High Count. This parameter must range from 0x0 to 0xFFFFFFFF. PWM high period = (TIM_PWM_High_Count + 1) * TIM clock period.
-
uint32_t TIM_PWM_Low_Count
Specify the PWM Low Count. This parameter must range from 0x0 to 0xFFFFFFFF. PWM low period = (TIM_PWM_Low_Count + 1) * TIM clock period.
-
PWMDZClockSrc_TypeDef PWM_Deazone_ClockSrc
Specify the PWM deadzone clock source. The calculation formula for PWM deadzone clock is as follows: PWM deadzone clock = PWM_Deazone_ClockSrc / PWM_Deadzone_DIV. This parameter can be a value of PWM DeadZone Clock Source.
-
TIMClockDiv_TypeDef PWM_Deadzone_DIV
Specify the PWM deadzone clock divider. This parameter can be a value of TIM Clock Divider.
-
uint32_t PWM_Deazone_Size
Specify the PWM deadzone size. This parameter must range from 0x1 to 0xff. The calculation formula for deadzone time is as follows: deadzone time = (PWM_Deazone_Size) / deadzone clock.
-
FunctionalState PWMDeadZone_En
Enable or disable the PWM complementary output and deadzone. This parameter can be a value of ENABLE or DISABLE.
-
PWMDZStopState_TypeDef PWM_Stop_State_P
Specify the PWM P stop state. This parameter can be a value of PWM DeadZone Stop State.
-
PWMDZStopState_TypeDef PWM_Stop_State_N
Specify the PWM N stop state. This parameter can be a value of PWM DeadZone Stop State.
-
TIMClockSrc_TypeDef TIM_ClockSrc
-
struct TIM_TimeBaseInitTypeDef