STM32F4xx_HAL_Driver  1.8.3
TIM Private Functions
+ Collaboration diagram for TIM Private Functions:

Functions

void TIM_Base_SetConfig (TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
 Time Base configuration. More...
 
void TIM_TI1_SetConfig (TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t TIM_ICFilter)
 Configure the TI1 as Input. More...
 
void TIM_OC2_SetConfig (TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
 Timer Output Compare 2 configuration. More...
 
void TIM_ETR_SetConfig (TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler, uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
 Configures the TIMx External Trigger (ETR). More...
 
void TIM_DMADelayPulseHalfCplt (DMA_HandleTypeDef *hdma)
 TIM DMA Delay Pulse half complete callback. More...
 
void TIM_DMAError (DMA_HandleTypeDef *hdma)
 TIM DMA error callback. More...
 
void TIM_DMACaptureCplt (DMA_HandleTypeDef *hdma)
 TIM DMA Capture complete callback. More...
 
void TIM_DMACaptureHalfCplt (DMA_HandleTypeDef *hdma)
 TIM DMA Capture half complete callback. More...
 
void TIM_CCxChannelCmd (TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
 Enables or disables the TIM Capture Compare Channel x. More...
 
void TIM_ResetCallback (TIM_HandleTypeDef *htim)
 Reset interrupt callbacks to the legacy weak callbacks. More...
 

Detailed Description

Function Documentation

◆ TIM_Base_SetConfig()

void TIM_Base_SetConfig ( TIM_TypeDef *  TIMx,
const TIM_Base_InitTypeDef Structure 
)

Time Base configuration.

Parameters
TIMxTIM peripheral
StructureTIM Base configuration structure
Return values
None

Definition at line 6777 of file stm32f4xx_hal_tim.c.

◆ TIM_CCxChannelCmd()

void TIM_CCxChannelCmd ( TIM_TypeDef *  TIMx,
uint32_t  Channel,
uint32_t  ChannelState 
)

Enables or disables the TIM Capture Compare Channel x.

Parameters
TIMxto select the TIM peripheral
Channelspecifies the TIM Channel This parameter can be one of the following values:
  • TIM_CHANNEL_1: TIM Channel 1
  • TIM_CHANNEL_2: TIM Channel 2
  • TIM_CHANNEL_3: TIM Channel 3
  • TIM_CHANNEL_4: TIM Channel 4
ChannelStatespecifies the TIM Channel CCxE bit new state. This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
Return values
None

Definition at line 7578 of file stm32f4xx_hal_tim.c.

◆ TIM_DMACaptureCplt()

void TIM_DMACaptureCplt ( DMA_HandleTypeDef hdma)

TIM DMA Capture complete callback.

Parameters
hdmapointer to DMA handle.
Return values
None

Definition at line 6600 of file stm32f4xx_hal_tim.c.

◆ TIM_DMACaptureHalfCplt()

void TIM_DMACaptureHalfCplt ( DMA_HandleTypeDef hdma)

TIM DMA Capture half complete callback.

Parameters
hdmapointer to DMA handle.
Return values
None

Definition at line 6663 of file stm32f4xx_hal_tim.c.

◆ TIM_DMADelayPulseHalfCplt()

void TIM_DMADelayPulseHalfCplt ( DMA_HandleTypeDef hdma)

TIM DMA Delay Pulse half complete callback.

Parameters
hdmapointer to DMA handle.
Return values
None

Definition at line 6561 of file stm32f4xx_hal_tim.c.

◆ TIM_DMAError()

void TIM_DMAError ( DMA_HandleTypeDef hdma)

TIM DMA error callback.

Parameters
hdmapointer to DMA handle.
Return values
None

Definition at line 6459 of file stm32f4xx_hal_tim.c.

◆ TIM_ETR_SetConfig()

void TIM_ETR_SetConfig ( TIM_TypeDef *  TIMx,
uint32_t  TIM_ExtTRGPrescaler,
uint32_t  TIM_ExtTRGPolarity,
uint32_t  ExtTRGFilter 
)

Configures the TIMx External Trigger (ETR).

Parameters
TIMxto select the TIM peripheral
TIM_ExtTRGPrescalerThe external Trigger Prescaler. This parameter can be one of the following values:
  • TIM_ETRPRESCALER_DIV1: ETRP Prescaler OFF.
  • TIM_ETRPRESCALER_DIV2: ETRP frequency divided by 2.
  • TIM_ETRPRESCALER_DIV4: ETRP frequency divided by 4.
  • TIM_ETRPRESCALER_DIV8: ETRP frequency divided by 8.
TIM_ExtTRGPolarityThe external Trigger Polarity. This parameter can be one of the following values:
  • TIM_ETRPOLARITY_INVERTED: active low or falling edge active.
  • TIM_ETRPOLARITY_NONINVERTED: active high or rising edge active.
ExtTRGFilterExternal Trigger Filter. This parameter must be a value between 0x00 and 0x0F
Return values
None

Definition at line 7548 of file stm32f4xx_hal_tim.c.

◆ TIM_OC2_SetConfig()

void TIM_OC2_SetConfig ( TIM_TypeDef *  TIMx,
const TIM_OC_InitTypeDef OC_Config 
)

Timer Output Compare 2 configuration.

Parameters
TIMxto select the TIM peripheral
OC_ConfigThe output configuration structure
Return values
None

Definition at line 6908 of file stm32f4xx_hal_tim.c.

◆ TIM_ResetCallback()

void TIM_ResetCallback ( TIM_HandleTypeDef htim)

Reset interrupt callbacks to the legacy weak callbacks.

Parameters
htimpointer to a TIM_HandleTypeDef structure that contains the configuration information for TIM module.
Return values
None

Definition at line 7602 of file stm32f4xx_hal_tim.c.

◆ TIM_TI1_SetConfig()

void TIM_TI1_SetConfig ( TIM_TypeDef *  TIMx,
uint32_t  TIM_ICPolarity,
uint32_t  TIM_ICSelection,
uint32_t  TIM_ICFilter 
)

Configure the TI1 as Input.

Parameters
TIMxto select the TIM peripheral.
TIM_ICPolarityThe Input Polarity. This parameter can be one of the following values:
  • TIM_ICPOLARITY_RISING
  • TIM_ICPOLARITY_FALLING
  • TIM_ICPOLARITY_BOTHEDGE
TIM_ICSelectionspecifies the input to be used. This parameter can be one of the following values:
  • TIM_ICSELECTION_DIRECTTI: TIM Input 1 is selected to be connected to IC1.
  • TIM_ICSELECTION_INDIRECTTI: TIM Input 1 is selected to be connected to IC2.
  • TIM_ICSELECTION_TRC: TIM Input 1 is selected to be connected to TRC.
TIM_ICFilterSpecifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F.
Return values
None
Note
TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI2FP1 (on channel2 path) is used as the input signal. Therefore CCMR1 must be protected against un-initialized filter and polarity values.

Definition at line 7254 of file stm32f4xx_hal_tim.c.