STM8L15x Standard Peripherals Drivers: Specific interface management functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Specific interface management functions

Specific interface management functions. More...

Functions

void TIM5_EncoderInterfaceConfig (TIM5_EncoderMode_TypeDef TIM5_EncoderMode, TIM5_ICPolarity_TypeDef TIM5_IC1Polarity, TIM5_ICPolarity_TypeDef TIM5_IC2Polarity)
 Configures the TIM5 Encoder Interface.
void TIM5_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 TIM5_EncoderInterfaceConfig ( TIM5_EncoderMode_TypeDef  TIM5_EncoderMode,
TIM5_ICPolarity_TypeDef  TIM5_IC1Polarity,
TIM5_ICPolarity_TypeDef  TIM5_IC2Polarity 
)

Configures the TIM5 Encoder Interface.

Parameters:
TIM5_EncoderMode,:Specifies the TIM5 Encoder Mode. This parameter can be one of the following values:
  • TIM5_EncoderMode_TI1: Encoder mode 1
  • TIM5_EncoderMode_TI2: Encoder mode 2
  • TIM5_EncoderMode_TI12: Encoder mode 3
TIM5_IC1Polarity,:Specifies the IC1 Polarity. This parameter can be one of the following values:
  • TIM5_ICPolarity_Rising: Input Capture on Rising Edge
  • TIM5_ICPolarity_Falling: Input Capture on Falling Edge
TIM5_IC2Polarity,:Specifies the IC2 Polarity. This parameter can be one of the following values:
  • TIM5_ICPolarity_Rising: Input Capture on Rising Edge
  • TIM5_ICPolarity_Falling: Input Capture on Falling Edge
Return values:
None

Definition at line 1952 of file stm8l15x_tim5.c.

References IS_TIM5_ENCODER_MODE, IS_TIM5_IC_POLARITY, TIM5, TIM5_ICPolarity_Falling, TIM_CCER1_CC1P, TIM_CCER1_CC2P, TIM_CCMR_CCxS, TIM_CCMR_TIxDirect_Set, TIM_SMCR_MSM, and TIM_SMCR_TS.

void TIM5_SelectHallSensor ( FunctionalState  NewState)

Enables or Disables the TIM�s Hall sensor interface.

Parameters:
NewState,:The new state of the TIM5 Hall sensor interface. This parameter can be ENABLE or DISABLE
Return values:
None

Definition at line 2009 of file stm8l15x_tim5.c.

References DISABLE, IS_FUNCTIONAL_STATE, TIM5, and TIM_CR2_TI1S.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com