|
STM8L15x Standard Peripherals Drivers
|
Synchronization management functions. More...
Functions | |
| void | TIM5_ETRConfig (TIM5_ExtTRGPSC_TypeDef TIM5_ExtTRGPrescaler, TIM5_ExtTRGPolarity_TypeDef TIM5_ExtTRGPolarity, uint8_t ExtTRGFilter) |
| Configures the TIM5 External Trigger. | |
| void | TIM5_SelectInputTrigger (TIM5_TRGSelection_TypeDef TIM5_InputTriggerSource) |
| Selects the TIM5 Input Trigger source. | |
| void | TIM5_SelectMasterSlaveMode (FunctionalState NewState) |
| Sets or Resets the TIM5 Master/Slave Mode. | |
| void | TIM5_SelectOutputTrigger (TIM5_TRGOSource_TypeDef TIM5_TRGOSource) |
| Selects the TIM5 Trigger Output Mode. | |
| void | TIM5_SelectSlaveMode (TIM5_SlaveMode_TypeDef TIM5_SlaveMode) |
| Selects the TIM5 Slave Mode. | |
Detailed Description
Synchronization management functions.
===============================================================================
Synchronization management functions
===============================================================================
===================================================================
TIM5 Driver: how to use it in synchronization Mode
===================================================================
Case of two/several Timers
**************************
1. If TIM5 is used as master to other timers use the following functions:
- TIM5_SelectOutputTrigger()
- TIM5_SelectMasterSlaveMode()
2. If TIM5 is used as slave to other timers use the following functions:
- TIM5_SelectInputTrigger()
- TIM5_SelectSlaveMode()
Case of Timers and external trigger (TRIG pin)
********************************************
1. Configure the External trigger using TIM5_ETRConfig()
2. Configure the Slave Timer using the following functions:
- TIM5_SelectInputTrigger()
- TIM5_SelectSlaveMode()
Function Documentation
| void TIM5_ETRConfig | ( | TIM5_ExtTRGPSC_TypeDef | TIM5_ExtTRGPrescaler, |
| TIM5_ExtTRGPolarity_TypeDef | TIM5_ExtTRGPolarity, | ||
| uint8_t | ExtTRGFilter | ||
| ) |
Configures the TIM5 External Trigger.
Definition at line 1905 of file stm8l15x_tim5.c.
References IS_TIM5_EXT_FILTER, IS_TIM5_EXT_POLARITY, IS_TIM5_EXT_PRESCALER, and TIM5.
Referenced by TIM5_ETRClockMode1Config(), and TIM5_ETRClockMode2Config().
| void TIM5_SelectInputTrigger | ( | TIM5_TRGSelection_TypeDef | TIM5_InputTriggerSource | ) |
Selects the TIM5 Input Trigger source.
Definition at line 1793 of file stm8l15x_tim5.c.
References IS_TIM5_TRIGGER_SELECTION, TIM5, and TIM_SMCR_TS.
Referenced by TIM5_TIxExternalClockConfig().
| void TIM5_SelectMasterSlaveMode | ( | FunctionalState | NewState | ) |
Sets or Resets the TIM5 Master/Slave Mode.
Definition at line 1873 of file stm8l15x_tim5.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM5, and TIM_SMCR_MSM.
| void TIM5_SelectOutputTrigger | ( | TIM5_TRGOSource_TypeDef | TIM5_TRGOSource | ) |
Selects the TIM5 Trigger Output Mode.
Definition at line 1821 of file stm8l15x_tim5.c.
References IS_TIM5_TRGO_SOURCE, TIM5, and TIM_CR2_MMS.
| void TIM5_SelectSlaveMode | ( | TIM5_SlaveMode_TypeDef | TIM5_SlaveMode | ) |
Selects the TIM5 Slave Mode.
Definition at line 1849 of file stm8l15x_tim5.c.
References IS_TIM5_SLAVE_MODE, TIM5, and TIM_SMCR_SMS.