STM8L15x Standard Peripherals Drivers
|
Synchronization management functions. More...
Functions | |
void | TIM3_ETRConfig (TIM3_ExtTRGPSC_TypeDef TIM3_ExtTRGPrescaler, TIM3_ExtTRGPolarity_TypeDef TIM3_ExtTRGPolarity, uint8_t ExtTRGFilter) |
Configures the TIM3 External Trigger. | |
void | TIM3_SelectInputTrigger (TIM3_TRGSelection_TypeDef TIM3_InputTriggerSource) |
Selects the TIM3 Input Trigger source. | |
void | TIM3_SelectMasterSlaveMode (FunctionalState NewState) |
Sets or Resets the TIM3 Master/Slave Mode. | |
void | TIM3_SelectOutputTrigger (TIM3_TRGOSource_TypeDef TIM3_TRGOSource) |
Selects the TIM3 Trigger Output Mode. | |
void | TIM3_SelectSlaveMode (TIM3_SlaveMode_TypeDef TIM3_SlaveMode) |
Selects the TIM3 Slave Mode. |
Detailed Description
Synchronization management functions.
=============================================================================== Synchronization management functions =============================================================================== =================================================================== TIM3 Driver: how to use it in synchronization Mode =================================================================== Case of two/several Timers ************************** 1. If TIM3 is used as master to other timers use the following functions: - TIM3_SelectOutputTrigger() - TIM3_SelectMasterSlaveMode() 2. If TIM3 is used as slave to other timers use the following functions: - TIM3_SelectInputTrigger() - TIM3_SelectSlaveMode() Case of Timers and external trigger (TRIG pin) ******************************************** 1. Configure the External trigger using TIM3_ETRConfig() 2. Configure the Slave Timer using the following functions: - TIM3_SelectInputTrigger() - TIM3_SelectSlaveMode()
Function Documentation
void TIM3_ETRConfig | ( | TIM3_ExtTRGPSC_TypeDef | TIM3_ExtTRGPrescaler, |
TIM3_ExtTRGPolarity_TypeDef | TIM3_ExtTRGPolarity, | ||
uint8_t | ExtTRGFilter | ||
) |
Configures the TIM3 External Trigger.
Definition at line 1905 of file stm8l15x_tim3.c.
References IS_TIM3_EXT_FILTER, IS_TIM3_EXT_POLARITY, IS_TIM3_EXT_PRESCALER, and TIM3.
Referenced by TIM3_ETRClockMode1Config(), and TIM3_ETRClockMode2Config().
void TIM3_SelectInputTrigger | ( | TIM3_TRGSelection_TypeDef | TIM3_InputTriggerSource | ) |
Selects the TIM3 Input Trigger source.
Definition at line 1793 of file stm8l15x_tim3.c.
References IS_TIM3_TRIGGER_SELECTION, TIM3, and TIM_SMCR_TS.
Referenced by TIM3_TIxExternalClockConfig().
void TIM3_SelectMasterSlaveMode | ( | FunctionalState | NewState | ) |
Sets or Resets the TIM3 Master/Slave Mode.
Definition at line 1873 of file stm8l15x_tim3.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_SMCR_MSM.
void TIM3_SelectOutputTrigger | ( | TIM3_TRGOSource_TypeDef | TIM3_TRGOSource | ) |
Selects the TIM3 Trigger Output Mode.
Definition at line 1821 of file stm8l15x_tim3.c.
References IS_TIM3_TRGO_SOURCE, TIM3, and TIM_CR2_MMS.
void TIM3_SelectSlaveMode | ( | TIM3_SlaveMode_TypeDef | TIM3_SlaveMode | ) |
Selects the TIM3 Slave Mode.
Definition at line 1849 of file stm8l15x_tim3.c.
References IS_TIM3_SLAVE_MODE, TIM3, and TIM_SMCR_SMS.