STM32H735xx HAL User Manual
Functions
Timer synchronisation configuration
TIM Exported Functions

Functions

__STATIC_INLINE void LL_TIM_SetTriggerOutput (TIM_TypeDef *TIMx, uint32_t TimerSynchronization)
 Set the trigger output (TRGO) used for timer synchronization .
__STATIC_INLINE void LL_TIM_SetTriggerOutput2 (TIM_TypeDef *TIMx, uint32_t ADCSynchronization)
 Set the trigger output 2 (TRGO2) used for ADC synchronization .
__STATIC_INLINE void LL_TIM_SetSlaveMode (TIM_TypeDef *TIMx, uint32_t SlaveMode)
 Set the synchronization mode of a slave timer.
__STATIC_INLINE void LL_TIM_SetTriggerInput (TIM_TypeDef *TIMx, uint32_t TriggerInput)
 Set the selects the trigger input to be used to synchronize the counter.
__STATIC_INLINE void LL_TIM_EnableMasterSlaveMode (TIM_TypeDef *TIMx)
 Enable the Master/Slave mode.
__STATIC_INLINE void LL_TIM_DisableMasterSlaveMode (TIM_TypeDef *TIMx)
 Disable the Master/Slave mode.
__STATIC_INLINE uint32_t LL_TIM_IsEnabledMasterSlaveMode (TIM_TypeDef *TIMx)
 Indicates whether the Master/Slave mode is enabled.
__STATIC_INLINE void LL_TIM_ConfigETR (TIM_TypeDef *TIMx, uint32_t ETRPolarity, uint32_t ETRPrescaler, uint32_t ETRFilter)
 Configure the external trigger (ETR) input.
__STATIC_INLINE void LL_TIM_SetETRSource (TIM_TypeDef *TIMx, uint32_t ETRSource)
 Select the external trigger (ETR) input source.

Function Documentation

__STATIC_INLINE void LL_TIM_ConfigETR ( TIM_TypeDef *  TIMx,
uint32_t  ETRPolarity,
uint32_t  ETRPrescaler,
uint32_t  ETRFilter 
)

Configure the external trigger (ETR) input.

Note:
Macro IS_TIM_ETR_INSTANCE(TIMx) can be used to check whether or not a timer instance provides an external trigger input.
Reference Manual to LL API cross reference:
SMCR ETP LL_TIM_ConfigETR
SMCR ETPS LL_TIM_ConfigETR
SMCR ETF LL_TIM_ConfigETR
Parameters:
TIMxTimer instance
ETRPolarityThis parameter can be one of the following values:
ETRPrescalerThis parameter can be one of the following values:
ETRFilterThis parameter can be one of the following values:
Return values:
None

Definition at line 3486 of file stm32h7xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_DisableMasterSlaveMode ( TIM_TypeDef *  TIMx)

Disable the Master/Slave mode.

Note:
Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not a timer instance can operate as a slave timer.
Reference Manual to LL API cross reference:
SMCR MSM LL_TIM_DisableMasterSlaveMode
Parameters:
TIMxTimer instance
Return values:
None

Definition at line 3433 of file stm32h7xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_EnableMasterSlaveMode ( TIM_TypeDef *  TIMx)

Enable the Master/Slave mode.

Note:
Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not a timer instance can operate as a slave timer.
Reference Manual to LL API cross reference:
SMCR MSM LL_TIM_EnableMasterSlaveMode
Parameters:
TIMxTimer instance
Return values:
None

Definition at line 3420 of file stm32h7xx_ll_tim.h.

__STATIC_INLINE uint32_t LL_TIM_IsEnabledMasterSlaveMode ( TIM_TypeDef *  TIMx)

Indicates whether the Master/Slave mode is enabled.

Note:
Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not a timer instance can operate as a slave timer.
Reference Manual to LL API cross reference:
SMCR MSM LL_TIM_IsEnabledMasterSlaveMode
Parameters:
TIMxTimer instance
Return values:
Stateof bit (1 or 0).

Definition at line 3446 of file stm32h7xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_SetETRSource ( TIM_TypeDef *  TIMx,
uint32_t  ETRSource 
)

Select the external trigger (ETR) input source.

Note:
Macro IS_TIM_ETRSEL_INSTANCE(TIMx) can be used to check whether or not a timer instance supports ETR source selection.
Reference Manual to LL API cross reference:
AF1 ETRSEL LL_TIM_SetETRSource
Parameters:
TIMxTimer instance
ETRSourceThis parameter can be one of the following values: For TIM1, the parameter is one of the following values:
  • LL_TIM_TIM1_ETRSOURCE_GPIO: TIM1_ETR is connected to GPIO
  • LL_TIM_TIM1_ETRSOURCE_COMP1: TIM1_ETR is connected to COMP1 output
  • LL_TIM_TIM1_ETRSOURCE_COMP2: TIM1_ETR is connected to COMP2 output
  • LL_TIM_TIM1_ETRSOURCE_ADC1_AWD1: TIM1_ETR is connected to ADC1 AWD1
  • LL_TIM_TIM1_ETRSOURCE_ADC1_AWD2: TIM1_ETR is connected to ADC1 AWD2
  • LL_TIM_TIM1_ETRSOURCE_ADC1_AWD3: TIM1_ETR is connected to ADC1 AWD3
  • LL_TIM_TIM1_ETRSOURCE_ADC3_AWD1: TIM1_ETR is connected to ADC3 AWD1
  • LL_TIM_TIM1_ETRSOURCE_ADC3_AWD2: TIM1_ETR is connected to ADC3 AWD2
  • LL_TIM_TIM1_ETRSOURCE_ADC3_AWD3: TIM1_ETR is connected to ADC3 AWD3
For TIM2, the parameter is one of the following values:
  • LL_TIM_TIM2_ETRSOURCE_GPIO: TIM2_ETR is connected to GPIO
  • LL_TIM_TIM2_ETRSOURCE_COMP1: TIM2_ETR is connected to COMP1 output
  • LL_TIM_TIM2_ETRSOURCE_COMP2: TIM2_ETR is connected to COMP2 output
  • LL_TIM_TIM2_ETRSOURCE_LSE: TIM2_ETR is connected to LSE
  • LL_TIM_TIM2_ETRSOURCE_SAI1_FSA: TIM2_ETR is connected to SAI1 FS_A
  • LL_TIM_TIM2_ETRSOURCE_SAI1_FSB: TIM2_ETR is connected to SAI1 FS_B
For TIM3, the parameter is one of the following values:
  • LL_TIM_TIM3_ETRSOURCE_GPIO: TIM3_ETR is connected to GPIO
  • LL_TIM_TIM3_ETRSOURCE_COMP1: TIM3_ETR is connected to COMP1 output
For TIM5, the parameter is one of the following values:
  • LL_TIM_TIM5_ETRSOURCE_GPIO: TIM5_ETR is connected to GPIO
  • LL_TIM_TIM5_ETRSOURCE_SAI2_FSA: TIM5_ETR is connected to SAI2 FS_A (*)
  • LL_TIM_TIM5_ETRSOURCE_SAI2_FSB: TIM5_ETR is connected to SAI2 FS_B (*)
  • LL_TIM_TIM5_ETRSOURCE_SAI4_FSA: TIM5_ETR is connected to SAI2 FS_A (*)
  • LL_TIM_TIM5_ETRSOURCE_SAI4_FSB: TIM5_ETR is connected to SAI2 FS_B (*)
For TIM8, the parameter is one of the following values:
  • LL_TIM_TIM8_ETRSOURCE_GPIO: TIM8_ETR is connected to GPIO
  • LL_TIM_TIM8_ETRSOURCE_COMP1: TIM8_ETR is connected to COMP1 output
  • LL_TIM_TIM8_ETRSOURCE_COMP2: TIM8_ETR is connected to COMP2 output
  • LL_TIM_TIM8_ETRSOURCE_ADC2_AWD1: TIM8_ETR is connected to ADC2 AWD1
  • LL_TIM_TIM8_ETRSOURCE_ADC2_AWD2: TIM8_ETR is connected to ADC2 AWD2
  • LL_TIM_TIM8_ETRSOURCE_ADC2_AWD3: TIM8_ETR is connected to ADC2 AWD3
  • LL_TIM_TIM8_ETRSOURCE_ADC3_AWD1: TIM8_ETR is connected to ADC3 AWD1
  • LL_TIM_TIM8_ETRSOURCE_ADC3_AWD2: TIM8_ETR is connected to ADC3 AWD2
  • LL_TIM_TIM8_ETRSOURCE_ADC3_AWD3: TIM8_ETR is connected to ADC3 AWD3
For TIM23, the parameter is one of the following values: (*)
  • LL_TIM_TIM23_ETRSOURCE_GPIO TIM23_ETR is connected to GPIO
  • LL_TIM_TIM23_ETRSOURCE_COMP1 TIM23_ETR is connected to COMP1 output
  • LL_TIM_TIM23_ETRSOURCE_COMP2 TIM23_ETR is connected to COMP2 output
For TIM24, the parameter is one of the following values: (*)
  • LL_TIM_TIM24_ETRSOURCE_GPIO TIM24_ETR is connected to GPIO
  • LL_TIM_TIM24_ETRSOURCE_SAI4_FSA TIM24_ETR is connected to SAI4 FS_A
  • LL_TIM_TIM24_ETRSOURCE_SAI4_FSB TIM24_ETR is connected to SAI4 FS_B
  • LL_TIM_TIM24_ETRSOURCE_SAI1_FSA TIM24_ETR is connected to SAI1 FS_A
  • LL_TIM_TIM24_ETRSOURCE_SAI1_FSB TIM24_ETR is connected to SAI1 FS_B
(*) Value not defined in all devices.
Return values:
None

Definition at line 3555 of file stm32h7xx_ll_tim.h.

References TIMx_AF1_ETRSEL.

__STATIC_INLINE void LL_TIM_SetSlaveMode ( TIM_TypeDef *  TIMx,
uint32_t  SlaveMode 
)

Set the synchronization mode of a slave timer.

Note:
Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not a timer instance can operate as a slave timer.
Reference Manual to LL API cross reference:
SMCR SMS LL_TIM_SetSlaveMode
Parameters:
TIMxTimer instance
SlaveModeThis parameter can be one of the following values:
Return values:
None

Definition at line 3373 of file stm32h7xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_SetTriggerInput ( TIM_TypeDef *  TIMx,
uint32_t  TriggerInput 
)

Set the selects the trigger input to be used to synchronize the counter.

Note:
Macro IS_TIM_SLAVE_INSTANCE(TIMx) can be used to check whether or not a timer instance can operate as a slave timer.
Reference Manual to LL API cross reference:
SMCR TS LL_TIM_SetTriggerInput
Parameters:
TIMxTimer instance
TriggerInputThis parameter can be one of the following values: (*) Value not defined in all devices.
Return values:
None

Definition at line 3407 of file stm32h7xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_SetTriggerOutput ( TIM_TypeDef *  TIMx,
uint32_t  TimerSynchronization 
)

Set the trigger output (TRGO) used for timer synchronization .

Note:
Macro IS_TIM_MASTER_INSTANCE(TIMx) can be used to check whether or not a timer instance can operate as a master timer.
Reference Manual to LL API cross reference:
CR2 MMS LL_TIM_SetTriggerOutput
Parameters:
TIMxTimer instance
TimerSynchronizationThis parameter can be one of the following values:
Return values:
None

Definition at line 3324 of file stm32h7xx_ll_tim.h.

__STATIC_INLINE void LL_TIM_SetTriggerOutput2 ( TIM_TypeDef *  TIMx,
uint32_t  ADCSynchronization 
)

Set the trigger output 2 (TRGO2) used for ADC synchronization .

Note:
Macro IS_TIM_TRGO2_INSTANCE(TIMx) can be used to check whether or not a timer instance can be used for ADC synchronization.
Reference Manual to LL API cross reference:
CR2 MMS2 LL_TIM_SetTriggerOutput2
Parameters:
TIMxTimer Instance
ADCSynchronizationThis parameter can be one of the following values:
Return values:
None

Definition at line 3354 of file stm32h7xx_ll_tim.h.