__LL_TIM_GET_ICPSC_RATIO macro
HELPER macro retrieving the ratio of the input capture prescaler
Syntax
#define __LL_TIM_GET_ICPSC_RATIO(__ICPSC__) \
((uint32_t)(0x01U << (((__ICPSC__) >> 16U) >> TIM_CCMR1_IC1PSC_Pos)))
Return value
Input capture prescaler ratio (1, 2, 4 or 8)
Notes
ex:
__LL_TIM_GET_ICPSC_RATIO
(LL_TIM_IC_GetPrescaler ());
Examples
__LL_TIM_GET_ICPSC_RATIO is referenced by 1 libraries and example projects: