STM8L15x Standard Peripherals Drivers: TIM1_Private_Functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

TIM1_Private_Functions

Modules

 TimeBase management functions
 

TimeBase management functions.

 Output Compare management functions
 

Output Compare management functions.


 Input Capture management functions
 

Input Capture management functions.


 Interrupts DMA and flags management functions
 

Interrupts, DMA and flags management functions.


 Clocks management functions
 

Clocks management functions.


 Synchronization management functions
 

Synchronization management functions.


 Specific interface management functions
 

Specific interface management functions.


Functions

static void TI1_Config (uint8_t TIM1_ICPolarity, uint8_t TIM1_ICSelection, uint8_t TIM1_ICFilter)
 Configure the TI1 as Input.
static void TI2_Config (uint8_t TIM1_ICPolarity, uint8_t TIM1_ICSelection, uint8_t TIM1_ICFilter)
 Configure the TI2 as Input.
static void TI3_Config (uint8_t TIM1_ICPolarity, uint8_t TIM1_ICSelection, uint8_t TIM1_ICFilter)
 Configure the TI3 as Input.
static void TI4_Config (uint8_t TIM1_ICPolarity, uint8_t TIM1_ICSelection, uint8_t TIM1_ICFilter)
 Configure the TI4 as Input.

Function Documentation

static void TI1_Config ( uint8_t  TIM1_ICPolarity,
uint8_t  TIM1_ICSelection,
uint8_t  TIM1_ICFilter 
) [static]

Configure the TI1 as Input.

Parameters:
TIM1_ICPolarityThe Input Polarity. This parameter can be one of the following values:
  • TIM1_ICPolarity_Rising: Input capture polarity rising
  • TIM1_ICPolarity_Falling: Input capture polarity falling
TIM1_ICSelectionspecifies the input to be used. This parameter can be one of the following values:
  • TIM1_ICSelection_DirectTI: TIM1 Input 1 is selected to be connected to IC1.
  • TIM1_ICSelection_IndirectTI: TIM1 Input 1 is selected to be connected to IC2.
TIM1_ICFilterSpecifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F.
Return values:
None

Definition at line 2617 of file stm8l15x_tim1.c.

References TIM1, TIM1_CCER1_CC1E, TIM1_CCER1_CC1P, TIM1_CCMR_CCxS, TIM1_CCMR_ICxF, and TIM1_ICPolarity_Rising.

Referenced by TIM1_ICInit(), TIM1_PWMIConfig(), and TIM1_TIxExternalClockConfig().

static void TI2_Config ( uint8_t  TIM1_ICPolarity,
uint8_t  TIM1_ICSelection,
uint8_t  TIM1_ICFilter 
) [static]

Configure the TI2 as Input.

Parameters:
TIM1_ICPolarityThe Input Polarity. This parameter can be one of the following values:
  • TIM1_ICPolarity_Rising: Input capture polarity rising
  • TIM1_ICPolarity_Falling: Input capture polarity falling
TIM1_ICSelectionspecifies the input to be used. This parameter can be one of the following values:
  • TIM1_ICSelection_DirectTI: TIM1 Input 2 is selected to be connected to IC2.
  • TIM1_ICSelection_IndirectTI: TIM1 Input 2 is selected to be connected to IC1.
TIM1_ICFilterSpecifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F.
Return values:
None

Definition at line 2657 of file stm8l15x_tim1.c.

References TIM1, TIM1_CCER1_CC2E, TIM1_CCER1_CC2P, TIM1_CCMR_CCxS, TIM1_CCMR_ICxF, and TIM1_ICPolarity_Rising.

Referenced by TIM1_ICInit(), TIM1_PWMIConfig(), and TIM1_TIxExternalClockConfig().

static void TI3_Config ( uint8_t  TIM1_ICPolarity,
uint8_t  TIM1_ICSelection,
uint8_t  TIM1_ICFilter 
) [static]

Configure the TI3 as Input.

Parameters:
TIM1_ICPolarityThe Input Polarity. This parameter can be one of the following values:
  • TIM1_ICPolarity_Rising: Input capture polarity rising
  • TIM1_ICPolarity_Falling: Input capture polarity falling
TIM1_ICSelectionspecifies the input to be used. This parameter can be one of the following values:
  • TIM1_ICSelection_DirectTI: TIM1 Input 3 is selected to be connected to IC3.
TIM1_ICFilterSpecifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F.
Return values:
None

Definition at line 2692 of file stm8l15x_tim1.c.

References TIM1, TIM1_CCER2_CC3E, TIM1_CCER2_CC3P, TIM1_CCMR_CCxS, TIM1_CCMR_ICxF, and TIM1_ICPolarity_Rising.

Referenced by TIM1_ICInit().

static void TI4_Config ( uint8_t  TIM1_ICPolarity,
uint8_t  TIM1_ICSelection,
uint8_t  TIM1_ICFilter 
) [static]

Configure the TI4 as Input.

Parameters:
TIM1_ICPolarityThe Input Polarity. This parameter can be one of the following values:
  • TIM1_ICPolarity_Rising: Input capture polarity rising
  • TIM1_ICPolarity_Falling: Input capture polarity falling
TIM1_ICSelectionspecifies the input to be used. This parameter can be one of the following values:
  • TIM1_ICSelection_IndirectTI: TIM1 Input 4 is selected to be connected to IC3.
TIM1_ICFilterSpecifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F.
Return values:
None

Definition at line 2727 of file stm8l15x_tim1.c.

References TIM1, TIM1_CCER2_CC4E, TIM1_CCER2_CC4P, TIM1_CCMR_CCxS, TIM1_CCMR_ICxF, and TIM1_ICPolarity_Rising.

Referenced by TIM1_ICInit().

STM8S Firmware Library: Overview

 

 

 

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