void TIM_SelectOCxM ( TIM_TypeDef * TIMx, uint16_t
TIM_Channel, uint32_t TIM_OCMode)
ï‚· TIMx : where x can be 1, 2, 3, 4, 8, 15, 16 or 17 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 :
ï€ TIM_OCMode_Retrigerrable_OPM1 :
ï€ TIM_OCMode_Retrigerrable_OPM2 :
ï€ TIM_OCMode_Combined_PWM1 :
ï€ TIM_OCMode_Combined_PWM2 :
ï€ TIM_OCMode_Asymmetric_PWM1 :
ï€ TIM_OCMode_Asymmetric_PWM2 :
ï‚· This function disables the selected channel before changing
the Output Compare Mode. If needed, user has to enable this
channel using TIM_CCxCmd() and TIM_CCxNCmd()
functions.