STM32F4xx_HAL_Driver  1.8.3
Timer synchronisation configuration
+ Collaboration diagram for Timer synchronisation configuration:

Functions

__STATIC_INLINE void LL_TIM_SetTriggerOutput (TIM_TypeDef *TIMx, uint32_t TimerSynchronization)
 Set the trigger output (TRGO) used for timer synchronization . More...
 
__STATIC_INLINE void LL_TIM_SetSlaveMode (TIM_TypeDef *TIMx, uint32_t SlaveMode)
 Set the synchronization mode of a slave timer. More...
 
__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. More...
 
__STATIC_INLINE void LL_TIM_EnableMasterSlaveMode (TIM_TypeDef *TIMx)
 Enable the Master/Slave mode. More...
 
__STATIC_INLINE void LL_TIM_DisableMasterSlaveMode (TIM_TypeDef *TIMx)
 Disable the Master/Slave mode. More...
 
__STATIC_INLINE uint32_t LL_TIM_IsEnabledMasterSlaveMode (const TIM_TypeDef *TIMx)
 Indicates whether the Master/Slave mode is enabled. More...
 
__STATIC_INLINE void LL_TIM_ConfigETR (TIM_TypeDef *TIMx, uint32_t ETRPolarity, uint32_t ETRPrescaler, uint32_t ETRFilter)
 Configure the external trigger (ETR) input. More...
 

Detailed Description

Function Documentation

◆ LL_TIM_ConfigETR()

__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. @rmtoll 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:
  • LL_TIM_ETR_POLARITY_NONINVERTED
  • LL_TIM_ETR_POLARITY_INVERTED
ETRPrescalerThis parameter can be one of the following values:
  • LL_TIM_ETR_PRESCALER_DIV1
  • LL_TIM_ETR_PRESCALER_DIV2
  • LL_TIM_ETR_PRESCALER_DIV4
  • LL_TIM_ETR_PRESCALER_DIV8
ETRFilterThis parameter can be one of the following values:
  • LL_TIM_ETR_FILTER_FDIV1
  • LL_TIM_ETR_FILTER_FDIV1_N2
  • LL_TIM_ETR_FILTER_FDIV1_N4
  • LL_TIM_ETR_FILTER_FDIV1_N8
  • LL_TIM_ETR_FILTER_FDIV2_N6
  • LL_TIM_ETR_FILTER_FDIV2_N8
  • LL_TIM_ETR_FILTER_FDIV4_N6
  • LL_TIM_ETR_FILTER_FDIV4_N8
  • LL_TIM_ETR_FILTER_FDIV8_N6
  • LL_TIM_ETR_FILTER_FDIV8_N8
  • LL_TIM_ETR_FILTER_FDIV16_N5
  • LL_TIM_ETR_FILTER_FDIV16_N6
  • LL_TIM_ETR_FILTER_FDIV16_N8
  • LL_TIM_ETR_FILTER_FDIV32_N5
  • LL_TIM_ETR_FILTER_FDIV32_N6
  • LL_TIM_ETR_FILTER_FDIV32_N8
Return values
None

Definition at line 2859 of file stm32f4xx_ll_tim.h.

◆ LL_TIM_DisableMasterSlaveMode()

__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. @rmtoll SMCR MSM LL_TIM_DisableMasterSlaveMode
Parameters
TIMxTimer instance
Return values
None

Definition at line 2806 of file stm32f4xx_ll_tim.h.

◆ LL_TIM_EnableMasterSlaveMode()

__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. @rmtoll SMCR MSM LL_TIM_EnableMasterSlaveMode
Parameters
TIMxTimer instance
Return values
None

Definition at line 2793 of file stm32f4xx_ll_tim.h.

◆ LL_TIM_IsEnabledMasterSlaveMode()

__STATIC_INLINE uint32_t LL_TIM_IsEnabledMasterSlaveMode ( const 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. @rmtoll SMCR MSM LL_TIM_IsEnabledMasterSlaveMode
Parameters
TIMxTimer instance
Return values
Stateof bit (1 or 0).

Definition at line 2819 of file stm32f4xx_ll_tim.h.

◆ LL_TIM_SetSlaveMode()

__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. @rmtoll SMCR SMS LL_TIM_SetSlaveMode
Parameters
TIMxTimer instance
SlaveModeThis parameter can be one of the following values:
  • LL_TIM_SLAVEMODE_DISABLED
  • LL_TIM_SLAVEMODE_RESET
  • LL_TIM_SLAVEMODE_GATED
  • LL_TIM_SLAVEMODE_TRIGGER
Return values
None

Definition at line 2758 of file stm32f4xx_ll_tim.h.

◆ LL_TIM_SetTriggerInput()

__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. @rmtoll SMCR TS LL_TIM_SetTriggerInput
Parameters
TIMxTimer instance
TriggerInputThis parameter can be one of the following values:
  • LL_TIM_TS_ITR0
  • LL_TIM_TS_ITR1
  • LL_TIM_TS_ITR2
  • LL_TIM_TS_ITR3
  • LL_TIM_TS_TI1F_ED
  • LL_TIM_TS_TI1FP1
  • LL_TIM_TS_TI2FP2
  • LL_TIM_TS_ETRF
Return values
None

Definition at line 2780 of file stm32f4xx_ll_tim.h.

◆ LL_TIM_SetTriggerOutput()

__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. @rmtoll CR2 MMS LL_TIM_SetTriggerOutput
Parameters
TIMxTimer instance
TimerSynchronizationThis parameter can be one of the following values:
  • LL_TIM_TRGO_RESET
  • LL_TIM_TRGO_ENABLE
  • LL_TIM_TRGO_UPDATE
  • LL_TIM_TRGO_CC1IF
  • LL_TIM_TRGO_OC1REF
  • LL_TIM_TRGO_OC2REF
  • LL_TIM_TRGO_OC3REF
  • LL_TIM_TRGO_OC4REF
Return values
None

Definition at line 2740 of file stm32f4xx_ll_tim.h.