HAL
TIM_TI4_SetConfig() is only used within HAL.
 
Symbols
loading...
Files
loading...

TIM_TI4_SetConfig() function

Configure the TI4 as Input.

Syntax

static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx,     uint32_t TIM_ICPolarity,     uint32_t TIM_ICSelection,     uint32_t TIM_ICFilter);
Implemented in stm32f4xx_hal_tim.c:7475

Arguments

TIMx

to select the TIM peripheral

TIM_ICPolarity

The Input Polarity. This parameter can be one of the following values: @arg TIM_ICPOLARITY_RISING @arg TIM_ICPOLARITY_FALLING @arg TIM_ICPOLARITY_BOTHEDGE

TIM_ICSelection

specifies the input to be used. This parameter can be one of the following values: @arg TIM_ICSELECTION_DIRECTTI: TIM Input 4 is selected to be connected to IC4. @arg TIM_ICSELECTION_INDIRECTTI: TIM Input 4 is selected to be connected to IC3. @arg TIM_ICSELECTION_TRC: TIM Input 4 is selected to be connected to TRC.

TIM_ICFilter

Specifies the Input Capture Filter. This parameter must be a value between 0x00 and 0x0F.

Return value

None

Notes

TIM_ICFilter and TIM_ICPolarity are not used in INDIRECT mode as TI4FP3 (on channel1 path) is used as the input signal. Therefore CCMR2 must be protected against un-initialized filter and polarity values.

References

LocationReferrerText
stm32f4xx_hal_tim.c:7475
static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
stm32f4xx_hal_tim.c:216
static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
stm32f4xx_hal_tim.c:4185HAL_TIM_IC_ConfigChannel()
TIM_TI4_SetConfig(htim->Instance,

Call Tree

Functions calling TIM_TI4_SetConfig()
all items filtered out
TIM_TI4_SetConfig()
Data read by TIM_TI4_SetConfig()
Data written by TIM_TI4_SetConfig()
TIM_TI4_SetConfig()
TIM_TI4_SetConfig()::tmpccmr2
TIM_TI4_SetConfig()::tmpccer
all items filtered out
Type of TIM_TI4_SetConfig()
TIM_TI4_SetConfig()
uint32_t
all items filtered out