Selects the TIM Output Compare Mode.
- Note
- This function does NOT disable the selected channel before changing the Output Compare Mode.
- Parameters
-
TIMx | where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. |
TIM_Channel | specifies the TIM Channel This parameter can be one of the following values:
- TIM_Channel_1: TIM Channel 1
- TIM_Channel_2: TIM Channel 2
- TIM_Channel_3: TIM Channel 3
- TIM_Channel_4: TIM Channel 4
|
TIM_OCMode | specifies the TIM Output Compare Mode. This parameter can be one of the following values:
- TIM_OCMode_Timing
- TIM_OCMode_Active
- TIM_OCMode_Toggle
- TIM_OCMode_PWM1
- TIM_OCMode_PWM2
- TIM_ForcedAction_Active
- TIM_ForcedAction_InActive
|
- Return values
-