STM32H735xx HAL User Manual
Functions
Extended Peripheral Control functions
TIM Extended Exported Functions

Peripheral Control functions. More...

Functions

HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent (TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource)
 Configure the TIM commutation event sequence.
HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT (TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource)
 Configure the TIM commutation event sequence with interrupt.
HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA (TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource)
 Configure the TIM commutation event sequence with DMA.
HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization (TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef *sMasterConfig)
 Configures the TIM in master mode.
HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime (TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
 Configures the Break feature, dead time, Lock level, OSSI/OSSR State and the AOE(automatic output enable).
HAL_StatusTypeDef HAL_TIMEx_ConfigBreakInput (TIM_HandleTypeDef *htim, uint32_t BreakInput, TIMEx_BreakInputConfigTypeDef *sBreakInputConfig)
 Configures the break input source.
HAL_StatusTypeDef HAL_TIMEx_RemapConfig (TIM_HandleTypeDef *htim, uint32_t Remap)
 Configures the TIMx Remapping input capabilities.
HAL_StatusTypeDef HAL_TIMEx_TISelection (TIM_HandleTypeDef *htim, uint32_t TISelection, uint32_t Channel)
 Select the timer input source.
HAL_StatusTypeDef HAL_TIMEx_GroupChannel5 (TIM_HandleTypeDef *htim, uint32_t Channels)
 Group channel 5 and channel 1, 2 or 3.
HAL_StatusTypeDef HAL_TIMEx_DisarmBreakInput (TIM_HandleTypeDef *htim, uint32_t BreakInput)
 Disarm the designated break input (when it operates in bidirectional mode).
HAL_StatusTypeDef HAL_TIMEx_ReArmBreakInput (TIM_HandleTypeDef *htim, uint32_t BreakInput)
 Arm the designated break input (when it operates in bidirectional mode).

Detailed Description

Peripheral Control functions.

  ==============================================================================
                    ##### Peripheral Control functions #####
  ==============================================================================
  [..]
    This section provides functions allowing to:
      (+) Configure the commutation event in case of use of the Hall sensor interface.
      (+) Configure Output channels for OC and PWM mode.

      (+) Configure Complementary channels, break features and dead time.
      (+) Configure Master synchronization.
      (+) Configure timer remapping capabilities.
      (+) Select timer input source.
      (+) Enable or disable channel grouping.


Function Documentation

HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime ( TIM_HandleTypeDef htim,
TIM_BreakDeadTimeConfigTypeDef sBreakDeadTimeConfig 
)

Configures the Break feature, dead time, Lock level, OSSI/OSSR State and the AOE(automatic output enable).

Parameters:
htimTIM handle
sBreakDeadTimeConfigpointer to a TIM_ConfigBreakDeadConfigTypeDef structure that contains the BDTR Register configuration information for the TIM peripheral.
Note:
Interrupts can be generated when an active level is detected on the break input, the break 2 input or the system break input. Break interrupt can be enabled by calling the __HAL_TIM_ENABLE_IT macro.
Return values:
HALstatus

Definition at line 2063 of file stm32h7xx_hal_tim_ex.c.

References assert_param, TIM_BreakDeadTimeConfigTypeDef::AutomaticOutput, TIM_BreakDeadTimeConfigTypeDef::Break2AFMode, TIM_BreakDeadTimeConfigTypeDef::Break2Filter, TIM_BreakDeadTimeConfigTypeDef::Break2Polarity, TIM_BreakDeadTimeConfigTypeDef::Break2State, TIM_BreakDeadTimeConfigTypeDef::BreakAFMode, TIM_BreakDeadTimeConfigTypeDef::BreakFilter, TIM_BreakDeadTimeConfigTypeDef::BreakPolarity, TIM_BreakDeadTimeConfigTypeDef::BreakState, TIM_BreakDeadTimeConfigTypeDef::DeadTime, __TIM_HandleTypeDef::Instance, IS_TIM_AUTOMATIC_OUTPUT_STATE, IS_TIM_BREAK2_AFMODE, IS_TIM_BREAK2_POLARITY, IS_TIM_BREAK2_STATE, IS_TIM_BREAK_AFMODE, IS_TIM_BREAK_FILTER, IS_TIM_BREAK_POLARITY, IS_TIM_BREAK_STATE, IS_TIM_DEADTIME, IS_TIM_LOCK_LEVEL, IS_TIM_OSSI_STATE, IS_TIM_OSSR_STATE, TIM_BreakDeadTimeConfigTypeDef::LockLevel, TIM_BreakDeadTimeConfigTypeDef::OffStateIDLEMode, and TIM_BreakDeadTimeConfigTypeDef::OffStateRunMode.

HAL_StatusTypeDef HAL_TIMEx_ConfigBreakInput ( TIM_HandleTypeDef htim,
uint32_t  BreakInput,
TIMEx_BreakInputConfigTypeDef sBreakInputConfig 
)

Configures the break input source.

Parameters:
htimTIM handle.
BreakInputBreak input to configure This parameter can be one of the following values:
  • TIM_BREAKINPUT_BRK: Timer break input
  • TIM_BREAKINPUT_BRK2: Timer break 2 input
sBreakInputConfigBreak input source configuration
Return values:
HALstatus

Definition at line 2150 of file stm32h7xx_hal_tim_ex.c.

References assert_param, TIMEx_BreakInputConfigTypeDef::Enable, __TIM_HandleTypeDef::Instance, IS_TIM_BREAKINPUT, IS_TIM_BREAKINPUTSOURCE, IS_TIM_BREAKINPUTSOURCE_POLARITY, IS_TIM_BREAKINPUTSOURCE_STATE, TIMEx_BreakInputConfigTypeDef::Polarity, TIMEx_BreakInputConfigTypeDef::Source, TIM_BREAKINPUT_BRK, TIM_BREAKINPUT_BRK2, TIM_BREAKINPUTSOURCE_BKIN, TIM_BREAKINPUTSOURCE_COMP1, TIM_BREAKINPUTSOURCE_COMP2, and TIM_BREAKINPUTSOURCE_DFSDM1.

HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent ( TIM_HandleTypeDef htim,
uint32_t  InputTrigger,
uint32_t  CommutationSource 
)

Configure the TIM commutation event sequence.

Note:
This function is mandatory to use the commutation event in order to update the configuration at each commutation detection on the TRGI input of the Timer, the typical use of this feature is with the use of another Timer(interface Timer) configured in Hall sensor interface, this interface Timer will generate the commutation at its TRGO output (connected to Timer used in this function) each time the TI1 of the Interface Timer detect a commutation at its input TI1.
Parameters:
htimTIM handle
InputTriggerthe Internal trigger corresponding to the Timer Interfacing with the Hall sensor This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal trigger 0 selected
  • TIM_TS_ITR1: Internal trigger 1 selected
  • TIM_TS_ITR2: Internal trigger 2 selected
  • TIM_TS_ITR3: Internal trigger 3 selected
  • TIM_TS_ITR12: Internal trigger 12 selected (*)
  • TIM_TS_ITR13: Internal trigger 13 selected (*)
  • TIM_TS_NONE: No trigger is needed
CommutationSourcethe Commutation Event source This parameter can be one of the following values:
  • TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer
  • TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG bit
Return values:
HALstatus

Definition at line 1818 of file stm32h7xx_hal_tim_ex.c.

References __HAL_TIM_DISABLE_DMA, __HAL_TIM_DISABLE_IT, assert_param, __TIM_HandleTypeDef::Instance, IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION, TIM_DMA_COM, TIM_IT_COM, TIM_TS_ITR0, TIM_TS_ITR1, TIM_TS_ITR12, TIM_TS_ITR13, TIM_TS_ITR2, and TIM_TS_ITR3.

HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_DMA ( TIM_HandleTypeDef htim,
uint32_t  InputTrigger,
uint32_t  CommutationSource 
)

Configure the TIM commutation event sequence with DMA.

Note:
This function is mandatory to use the commutation event in order to update the configuration at each commutation detection on the TRGI input of the Timer, the typical use of this feature is with the use of another Timer(interface Timer) configured in Hall sensor interface, this interface Timer will generate the commutation at its TRGO output (connected to Timer used in this function) each time the TI1 of the Interface Timer detect a commutation at its input TI1.
The user should configure the DMA in his own software, in This function only the COMDE bit is set
Parameters:
htimTIM handle
InputTriggerthe Internal trigger corresponding to the Timer Interfacing with the Hall sensor This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal trigger 0 selected
  • TIM_TS_ITR1: Internal trigger 1 selected
  • TIM_TS_ITR2: Internal trigger 2 selected
  • TIM_TS_ITR3: Internal trigger 3 selected
  • TIM_TS_ITR2: Internal trigger 12 selected (*)
  • TIM_TS_ITR3: Internal trigger 13 selected (*)
  • TIM_TS_NONE: No trigger is needed
(*) Value not defined in all devices.
CommutationSourcethe Commutation Event source This parameter can be one of the following values:
  • TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer
  • TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG bit
Return values:
HALstatus

Definition at line 1940 of file stm32h7xx_hal_tim_ex.c.

References __HAL_TIM_DISABLE_IT, __HAL_TIM_ENABLE_DMA, assert_param, __TIM_HandleTypeDef::hdma, __TIM_HandleTypeDef::Instance, IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION, TIM_DMA_COM, TIM_DMA_ID_COMMUTATION, TIM_DMAError(), TIM_IT_COM, TIM_TS_ITR0, TIM_TS_ITR1, TIM_TS_ITR12, TIM_TS_ITR13, TIM_TS_ITR2, TIM_TS_ITR3, TIMEx_DMACommutationCplt(), TIMEx_DMACommutationHalfCplt(), __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.

HAL_StatusTypeDef HAL_TIMEx_ConfigCommutEvent_IT ( TIM_HandleTypeDef htim,
uint32_t  InputTrigger,
uint32_t  CommutationSource 
)

Configure the TIM commutation event sequence with interrupt.

Note:
This function is mandatory to use the commutation event in order to update the configuration at each commutation detection on the TRGI input of the Timer, the typical use of this feature is with the use of another Timer(interface Timer) configured in Hall sensor interface, this interface Timer will generate the commutation at its TRGO output (connected to Timer used in this function) each time the TI1 of the Interface Timer detect a commutation at its input TI1.
Parameters:
htimTIM handle
InputTriggerthe Internal trigger corresponding to the Timer Interfacing with the Hall sensor This parameter can be one of the following values:
  • TIM_TS_ITR0: Internal trigger 0 selected
  • TIM_TS_ITR1: Internal trigger 1 selected
  • TIM_TS_ITR2: Internal trigger 2 selected
  • TIM_TS_ITR3: Internal trigger 3 selected
  • TIM_TS_ITR2: Internal trigger 12 selected (*)
  • TIM_TS_ITR3: Internal trigger 13 selected (*)
  • TIM_TS_NONE: No trigger is needed
CommutationSourcethe Commutation Event source This parameter can be one of the following values:
  • TIM_COMMUTATION_TRGI: Commutation source is the TRGI of the Interface Timer
  • TIM_COMMUTATION_SOFTWARE: Commutation source is set by software using the COMG bit
Return values:
HALstatus

Definition at line 1877 of file stm32h7xx_hal_tim_ex.c.

References __HAL_TIM_DISABLE_DMA, __HAL_TIM_ENABLE_IT, assert_param, __TIM_HandleTypeDef::Instance, IS_TIM_INTERNAL_TRIGGEREVENT_SELECTION, TIM_DMA_COM, TIM_IT_COM, TIM_TS_ITR0, TIM_TS_ITR1, TIM_TS_ITR12, TIM_TS_ITR13, TIM_TS_ITR2, and TIM_TS_ITR3.

HAL_StatusTypeDef HAL_TIMEx_DisarmBreakInput ( TIM_HandleTypeDef htim,
uint32_t  BreakInput 
)

Disarm the designated break input (when it operates in bidirectional mode).

Parameters:
htimTIM handle.
BreakInputBreak input to disarm This parameter can be one of the following values:
  • TIM_BREAKINPUT_BRK: Timer break input
  • TIM_BREAKINPUT_BRK2: Timer break 2 input
Note:
The break input can be disarmed only when it is configured in bidirectional mode and when when MOE is reset.
Purpose is to be able to have the input voltage back to high-state, whatever the time constant on the output .
Return values:
HALstatus

Definition at line 2512 of file stm32h7xx_hal_tim_ex.c.

References assert_param, __TIM_HandleTypeDef::Instance, IS_TIM_BREAKINPUT, TIM_BREAKINPUT_BRK, and TIM_BREAKINPUT_BRK2.

HAL_StatusTypeDef HAL_TIMEx_GroupChannel5 ( TIM_HandleTypeDef htim,
uint32_t  Channels 
)

Group channel 5 and channel 1, 2 or 3.

Parameters:
htimTIM handle.
Channelsspecifies the reference signal(s) the OC5REF is combined with. This parameter can be any combination of the following values: TIM_GROUPCH5_NONE: No effect of OC5REF on OC1REFC, OC2REFC and OC3REFC TIM_GROUPCH5_OC1REFC: OC1REFC is the logical AND of OC1REFC and OC5REF TIM_GROUPCH5_OC2REFC: OC2REFC is the logical AND of OC2REFC and OC5REF TIM_GROUPCH5_OC3REFC: OC3REFC is the logical AND of OC3REFC and OC5REF
Return values:
HALstatus

Definition at line 2473 of file stm32h7xx_hal_tim_ex.c.

References assert_param, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, __TIM_HandleTypeDef::Instance, IS_TIM_GROUPCH5, and __TIM_HandleTypeDef::State.

HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization ( TIM_HandleTypeDef htim,
TIM_MasterConfigTypeDef sMasterConfig 
)

Configures the TIM in master mode.

Parameters:
htimTIM handle.
sMasterConfigpointer to a TIM_MasterConfigTypeDef structure that contains the selected trigger output (TRGO) and the Master/Slave mode.
Return values:
HALstatus

Definition at line 1990 of file stm32h7xx_hal_tim_ex.c.

References assert_param, HAL_TIM_STATE_BUSY, HAL_TIM_STATE_READY, __TIM_HandleTypeDef::Instance, IS_TIM_MSM_STATE, IS_TIM_TRGO2_SOURCE, IS_TIM_TRGO_SOURCE, TIM_MasterConfigTypeDef::MasterOutputTrigger, TIM_MasterConfigTypeDef::MasterOutputTrigger2, TIM_MasterConfigTypeDef::MasterSlaveMode, and __TIM_HandleTypeDef::State.

HAL_StatusTypeDef HAL_TIMEx_ReArmBreakInput ( TIM_HandleTypeDef htim,
uint32_t  BreakInput 
)

Arm the designated break input (when it operates in bidirectional mode).

Parameters:
htimTIM handle.
BreakInputBreak input to arm This parameter can be one of the following values:
  • TIM_BREAKINPUT_BRK: Timer break input
  • TIM_BREAKINPUT_BRK2: Timer break 2 input
Note:
Arming is possible at anytime, even if fault is present.
Break input is automatically armed as soon as MOE bit is set.
Return values:
HALstatus

Definition at line 2567 of file stm32h7xx_hal_tim_ex.c.

References assert_param, HAL_GetTick(), __TIM_HandleTypeDef::Instance, IS_TIM_BREAKINPUT, TIM_BREAKINPUT_BRK, TIM_BREAKINPUT_BRK2, and TIM_BREAKINPUT_REARM_TIMEOUT.

HAL_StatusTypeDef HAL_TIMEx_RemapConfig ( TIM_HandleTypeDef htim,
uint32_t  Remap 
)

Configures the TIMx Remapping input capabilities.

Parameters:
htimTIM handle.
Remapspecifies the TIM remapping source. For TIM1, the parameter is one of the following values:
  • TIM_TIM1_ETR_GPIO: TIM1_ETR is connected to GPIO
  • TIM_TIM1_ETR_COMP1: TIM1_ETR is connected to COMP1 output
  • TIM_TIM1_ETR_COMP2: TIM1_ETR is connected to COMP2 output
  • TIM_TIM1_ETR_ADC1_AWD1: TIM1_ETR is connected to ADC1 AWD1
  • TIM_TIM1_ETR_ADC1_AWD2: TIM1_ETR is connected to ADC1 AWD2
  • TIM_TIM1_ETR_ADC1_AWD3: TIM1_ETR is connected to ADC1 AWD3
  • TIM_TIM1_ETR_ADC3_AWD1: TIM1_ETR is connected to ADC3 AWD1
  • TIM_TIM1_ETR_ADC3_AWD2: TIM1_ETR is connected to ADC3 AWD2
  • TIM_TIM1_ETR_ADC3_AWD3: TIM1_ETR is connected to ADC3 AWD3
For TIM2, the parameter is one of the following values:
  • TIM_TIM2_ETR_GPIO: TIM2_ETR is connected to GPIO
  • TIM_TIM2_ETR_COMP1: TIM2_ETR is connected to COMP1 output
  • TIM_TIM2_ETR_COMP2: TIM2_ETR is connected to COMP2 output
  • TIM_TIM2_ETR_LSE: TIM2_ETR is connected to LSE
  • TIM_TIM2_ETR_SAI1_FSA: TIM2_ETR is connected to SAI1 FS_A
  • TIM_TIM2_ETR_SAI1_FSB: TIM2_ETR is connected to SAI1 FS_B
For TIM3, the parameter is one of the following values:
  • TIM_TIM3_ETR_GPIO: TIM3_ETR is connected to GPIO
  • TIM_TIM3_ETR_COMP1: TIM3_ETR is connected to COMP1 output
For TIM5, the parameter is one of the following values:
  • TIM_TIM5_ETR_GPIO: TIM5_ETR is connected to GPIO
  • TIM_TIM5_ETR_SAI2_FSA: TIM5_ETR is connected to SAI2 FS_A (*)
  • TIM_TIM5_ETR_SAI2_FSB: TIM5_ETR is connected to SAI2 FS_B (*)
  • TIM_TIM5_ETR_SAI4_FSA: TIM5_ETR is connected to SAI2 FS_A (*)
  • TIM_TIM5_ETR_SAI4_FSB: TIM5_ETR is connected to SAI2 FS_B (*)
For TIM8, the parameter is one of the following values:
  • TIM_TIM8_ETR_GPIO: TIM8_ETR is connected to GPIO
  • TIM_TIM8_ETR_COMP1: TIM8_ETR is connected to COMP1 output
  • TIM_TIM8_ETR_COMP2: TIM8_ETR is connected to COMP2 output
  • TIM_TIM8_ETR_ADC2_AWD1: TIM8_ETR is connected to ADC2 AWD1
  • TIM_TIM8_ETR_ADC2_AWD2: TIM8_ETR is connected to ADC2 AWD2
  • TIM_TIM8_ETR_ADC2_AWD3: TIM8_ETR is connected to ADC2 AWD3
  • TIM_TIM8_ETR_ADC3_AWD1: TIM8_ETR is connected to ADC3 AWD1
  • TIM_TIM8_ETR_ADC3_AWD2: TIM8_ETR is connected to ADC3 AWD2
  • TIM_TIM8_ETR_ADC3_AWD3: TIM8_ETR is connected to ADC3 AWD3
For TIM23, the parameter is one of the following values: (*)
  • TIM_TIM23_ETR_GPIO TIM23_ETR is connected to GPIO
  • TIM_TIM23_ETR_COMP1 TIM23_ETR is connected to COMP1 output
  • TIM_TIM23_ETR_COMP2 TIM23_ETR is connected to COMP2 output
For TIM24, the parameter is one of the following values: (*)
  • TIM_TIM24_ETR_GPIO TIM24_ETR is connected to GPIO
  • TIM_TIM24_ETR_SAI4_FSA TIM24_ETR is connected to SAI4 FS_A
  • TIM_TIM24_ETR_SAI4_FSB TIM24_ETR is connected to SAI4 FS_B
  • TIM_TIM24_ETR_SAI1_FSA TIM24_ETR is connected to SAI1 FS_A
  • TIM_TIM24_ETR_SAI1_FSB TIM24_ETR is connected to SAI1 FS_B
(*) Value not defined in all devices.
Return values:
HALstatus

Definition at line 2334 of file stm32h7xx_hal_tim_ex.c.

References assert_param, __TIM_HandleTypeDef::Instance, and IS_TIM_REMAP.

HAL_StatusTypeDef HAL_TIMEx_TISelection ( TIM_HandleTypeDef htim,
uint32_t  TISelection,
uint32_t  Channel 
)

Select the timer input source.

Parameters:
htimTIM handle.
Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_CHANNEL_1: TI1 input channel
  • TIM_CHANNEL_2: TI2 input channel
  • TIM_CHANNEL_3: TIM Channel 3
  • TIM_CHANNEL_4: TIM Channel 4
TISelectionparameter of the TIM_TISelectionStruct structure is detailed as follows: For TIM1, the parameter is one of the following values:
  • TIM_TIM1_TI1_GPIO: TIM1 TI1 is connected to GPIO
  • TIM_TIM1_TI1_COMP1: TIM1 TI1 is connected to COMP1 output
For TIM2, the parameter is one of the following values:
  • TIM_TIM2_TI4_GPIO: TIM2 TI4 is connected to GPIO
  • TIM_TIM2_TI4_COMP1: TIM2 TI4 is connected to COMP1 output
  • TIM_TIM2_TI4_COMP2: TIM2 TI4 is connected to COMP2 output
  • TIM_TIM2_TI4_COMP1_COMP2: TIM2 TI4 is connected to logical OR between COMP1 and COMP2 output
For TIM3, the parameter is one of the following values:
  • TIM_TIM3_TI1_GPIO: TIM3 TI1 is connected to GPIO
  • TIM_TIM3_TI1_COMP1: TIM3 TI1 is connected to COMP1 output
  • TIM_TIM3_TI1_COMP2: TIM3 TI1 is connected to COMP2 output
  • TIM_TIM3_TI1_COMP1_COMP2: TIM3 TI1 is connected to logical OR between COMP1 and COMP2 output
For TIM5, the parameter is one of the following values:
  • TIM_TIM5_TI1_GPIO: TIM5 TI1 is connected to GPIO
  • TIM_TIM5_TI1_CAN_TMP: TIM5 TI1 is connected to CAN TMP
  • TIM_TIM5_TI1_CAN_RTP: TIM5 TI1 is connected to CAN RTP
For TIM8, the parameter is one of the following values:
  • TIM_TIM8_TI1_GPIO: TIM8 TI1 is connected to GPIO
  • TIM_TIM8_TI1_COMP2: TIM8 TI1 is connected to COMP2 output
For TIM12, the parameter can have the following values: (*)
  • TIM_TIM12_TI1_GPIO: TIM12 TI1 is connected to GPIO
  • TIM_TIM12_TI1_SPDIF_FS: TIM12 TI1 is connected to SPDIF FS
For TIM15, the parameter is one of the following values:
  • TIM_TIM15_TI1_GPIO: TIM15 TI1 is connected to GPIO
  • TIM_TIM15_TI1_TIM2: TIM15 TI1 is connected to TIM2 CH1
  • TIM_TIM15_TI1_TIM3: TIM15 TI1 is connected to TIM3 CH1
  • TIM_TIM15_TI1_TIM4: TIM15 TI1 is connected to TIM4 CH1
  • TIM_TIM15_TI1_LSE: TIM15 TI1 is connected to LSE
  • TIM_TIM15_TI1_CSI: TIM15 TI1 is connected to CSI
  • TIM_TIM15_TI1_MCO2: TIM15 TI1 is connected to MCO2
  • TIM_TIM15_TI2_GPIO: TIM15 TI2 is connected to GPIO
  • TIM_TIM15_TI2_TIM2: TIM15 TI2 is connected to TIM2 CH2
  • TIM_TIM15_TI2_TIM3: TIM15 TI2 is connected to TIM3 CH2
  • TIM_TIM15_TI2_TIM4: TIM15 TI2 is connected to TIM4 CH2
For TIM16, the parameter can have the following values:
  • TIM_TIM16_TI1_GPIO: TIM16 TI1 is connected to GPIO
  • TIM_TIM16_TI1_LSI: TIM16 TI1 is connected to LSI
  • TIM_TIM16_TI1_LSE: TIM16 TI1 is connected to LSE
  • TIM_TIM16_TI1_RTC: TIM16 TI1 is connected to RTC wakeup interrupt
For TIM17, the parameter can have the following values:
  • TIM_TIM17_TI1_GPIO: TIM17 TI1 is connected to GPIO
  • TIM_TIM17_TI1_SPDIF_FS: TIM17 TI1 is connected to SPDIF FS (*)
  • TIM_TIM17_TI1_HSE_1MHZ: TIM17 TI1 is connected to HSE 1MHz
  • TIM_TIM17_TI1_MCO1: TIM17 TI1 is connected to MCO1
For TIM23, the parameter can have the following values: (*)
  • TIM_TIM23_TI4_GPIO TIM23_TI4 is connected to GPIO
  • TIM_TIM23_TI4_COMP1 TIM23_TI4 is connected to COMP1 output
  • TIM_TIM23_TI4_COMP2 TIM23_TI4 is connected to COMP2 output
  • TIM_TIM23_TI4_COMP1_COMP2 TIM23_TI4 is connected to COMP2 output
For TIM24, the parameter can have the following values: (*)
  • TIM_TIM24_TI1_GPIO TIM24_TI1 is connected to GPIO
  • TIM_TIM24_TI1_CAN_TMP TIM24_TI1 is connected to CAN_TMP
  • TIM_TIM24_TI1_CAN_RTP TIM24_TI1 is connected to CAN_RTP
  • TIM_TIM24_TI1_CAN_SOC TIM24_TI1 is connected to CAN_SOC
(*) Value not defined in all devices.
Return values:
HALstatus

Definition at line 2428 of file stm32h7xx_hal_tim_ex.c.

References assert_param, __TIM_HandleTypeDef::Instance, IS_TIM_TISEL, TIM_CHANNEL_1, TIM_CHANNEL_2, TIM_CHANNEL_3, and TIM_CHANNEL_4.