STM8L15x Standard Peripherals Drivers
|
Specific interface management functions. More...
Functions | |
void | TIM1_EncoderInterfaceConfig (TIM1_EncoderMode_TypeDef TIM1_EncoderMode, TIM1_ICPolarity_TypeDef TIM1_IC1Polarity, TIM1_ICPolarity_TypeDef TIM1_IC2Polarity) |
Configures the TIM1 Encoder Interface. | |
void | TIM1_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 TIM1_EncoderInterfaceConfig | ( | TIM1_EncoderMode_TypeDef | TIM1_EncoderMode, |
TIM1_ICPolarity_TypeDef | TIM1_IC1Polarity, | ||
TIM1_ICPolarity_TypeDef | TIM1_IC2Polarity | ||
) |
Configures the TIM1 Encoder Interface.
Definition at line 2541 of file stm8l15x_tim1.c.
References CCMR_TIxDirect_Set, IS_TIM1_ENCODER_MODE, IS_TIM1_IC_POLARITY, TIM1, TIM1_CCER1_CC1P, TIM1_CCER1_CC2P, TIM1_CCMR_CCxS, TIM1_ICPolarity_Rising, TIM1_SMCR_MSM, and TIM1_SMCR_TS.
void TIM1_SelectHallSensor | ( | FunctionalState | NewState | ) |
Enables or Disables the TIM�s Hall sensor interface.
Definition at line 2583 of file stm8l15x_tim1.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM1, and TIM1_CR2_TI1S.