UM1940
TIM_Base_SetConfig
Function name
Function description
Parameters
Return values
TIM_TI1_SetConfig
Function name
Function description
Parameters
Return values
Notes
TIM_OC2_SetConfig
Function name
Function description
Parameters
Return values
TIM_DMADelayPulseCplt
Function name
void TIM_Base_SetConfig (TIM_TypeDef * TIMx,
TIM_Base_InitTypeDef * Structure)
Time Base configuration.
TIMx: TIM peripheral
Structure: pointer on TIM Time Base required parameters
None:
void TIM_TI1_SetConfig (TIM_TypeDef * TIMx, uint32_t
TIM_ICPolarity, uint32_t TIM_ICSelection, uint32_t
TIM_ICFilter)
Configure the TI1 as Input.
TIMx: to select the TIM peripheral.
TIM_ICPolarity: : The Input Polarity. This parameter can be
one of the following values:
TIM_ICPolarity_Rising
TIM_ICPolarity_Falling
TIM_ICPolarity_BothEdge
TIM_ICSelection: specifies 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_ICFilter: Specifies the Input Capture Filter. This
parameter must be a value between 0x00 and 0x0F.
None:
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.
void TIM_OC2_SetConfig (TIM_TypeDef * TIMx,
TIM_OC_InitTypeDef * OC_Config)
Time Output Compare 2 configuration.
TIMx: to select the TIM peripheral
OC_Config: The output configuration structure
None:
void TIM_DMADelayPulseCplt (DMA_HandleTypeDef * hdma)
DocID028236 Rev 2
HAL TIM Generic Driver
607/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers