STM8L15x Standard Peripherals Drivers
|
Specific interface management functions. More...
Functions | |
void | TIM2_EncoderInterfaceConfig (TIM2_EncoderMode_TypeDef TIM2_EncoderMode, TIM2_ICPolarity_TypeDef TIM2_IC1Polarity, TIM2_ICPolarity_TypeDef TIM2_IC2Polarity) |
Configures the TIM2 Encoder Interface. | |
void | TIM2_SelectHallSensor (FunctionalState NewState) |
Enables or Disables the TIM�s Hall sensor interface. |
Detailed Description
Specific interface management functions.
=============================================================================== Specific interface management functions ===============================================================================
Function Documentation
void TIM2_EncoderInterfaceConfig | ( | TIM2_EncoderMode_TypeDef | TIM2_EncoderMode, |
TIM2_ICPolarity_TypeDef | TIM2_IC1Polarity, | ||
TIM2_ICPolarity_TypeDef | TIM2_IC2Polarity | ||
) |
Configures the TIM2 Encoder Interface.
Definition at line 1952 of file stm8l15x_tim2.c.
References IS_TIM2_ENCODER_MODE, IS_TIM2_IC_POLARITY, TIM2, TIM2_ICPolarity_Falling, TIM_CCER1_CC1P, TIM_CCER1_CC2P, TIM_CCMR_CCxS, TIM_CCMR_TIxDirect_Set, TIM_SMCR_MSM, and TIM_SMCR_TS.
void TIM2_SelectHallSensor | ( | FunctionalState | NewState | ) |
Enables or Disables the TIM�s Hall sensor interface.
Definition at line 2009 of file stm8l15x_tim2.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM2, and TIM_CR2_TI1S.