LL_TIM_SetPrescaler
__STATIC_INLINE void LL_TIM_SetPrescaler (TIM_TypeDef *
TIMx, uint32_t Prescaler)
TIMx: Timer instance
Prescaler: between Min_Data=0 and Max_Data=65535
The counter clock frequency CK_CNT is equal to fCK_PSC /
(PSC[15:0] + 1).
The prescaler can be changed on the fly as this control
register is buffered. The new prescaler ratio is taken into
account at the next update event.
Helper macro __LL_TIM_CALC_PSC can be used to
calculate the Prescaler parameter
Reference Manual to
LL API cross
reference:
PSC PSC LL_TIM_SetPrescaler
LL_TIM_GetPrescaler
__STATIC_INLINE uint32_t LL_TIM_GetPrescaler
(TIM_TypeDef * TIMx)
Prescaler: value between Min_Data=0 and
Max_Data=65535
Reference Manual to
LL API cross
reference:
PSC PSC LL_TIM_GetPrescaler
LL_TIM_SetAutoReload
__STATIC_INLINE void LL_TIM_SetAutoReload (TIM_TypeDef
* TIMx, uint32_t AutoReload)
Set the auto-reload value.
TIMx: Timer instance
AutoReload: between Min_Data=0 and Max_Data=65535
The counter is blocked while the auto-reload value is null.
Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be
used to check whether or not a timer instance supports a 32
bits counter.
Helper macro __LL_TIM_CALC_ARR can be used to
calculate the AutoReload parameter
Reference Manual to
LL API cross
ARR ARR LL_TIM_SetAutoReload