TIM_TI4_SetConfig() function
Configure the TI4 as Input.
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.
Functions calling TIM_TI4_SetConfig()
TIM_TI4_SetConfig()
Data read by TIM_TI4_SetConfig()
Data written by TIM_TI4_SetConfig()
TIM_TI4_SetConfig()::tmpccmr2 TIM_TI4_SetConfig()::tmpccer all items filtered out
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