LL_TIM_SetCounter
__STATIC_INLINE void LL_TIM_SetCounter (TIM_TypeDef *
TIMx, uint32_t Counter)
TIMx: Timer instance
Counter: Counter value (between Min_Data=0 and
Max_Data=0xFFFF or 0xFFFFFFFF)
Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be
used to check whether or not a timer instance supports a 32
bits counter.
Reference Manual to
LL API cross
reference:
CNT CNT LL_TIM_SetCounter
LL_TIM_GetCounter
__STATIC_INLINE uint32_t LL_TIM_GetCounter (TIM_TypeDef
* TIMx)
Counter: value (between Min_Data=0 and
Max_Data=0xFFFF or 0xFFFFFFFF)
Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be
used to check whether or not a timer instance supports a 32
bits counter.
Reference Manual to
LL API cross
reference:
CNT CNT LL_TIM_GetCounter
LL_TIM_GetDirection
__STATIC_INLINE uint32_t LL_TIM_GetDirection
(TIM_TypeDef * TIMx)
Get the current direction of the counter.
Returned: value can be one of the following values:
LL_TIM_COUNTERDIRECTION_UP
LL_TIM_COUNTERDIRECTION_DOWN
Reference Manual to
LL API cross
reference:
CR1 DIR LL_TIM_GetDirection