LL TIM Generic Driver
reference:
LL_TIM_SetCounter
Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:
LL_TIM_GetCounter
Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:
LL_TIM_GetDirection
Function name
Function description
Parameters
Return values
Reference Manual to
LL API cross
reference:
1172/1371
__STATIC_INLINE void LL_TIM_SetCounter (TIM_TypeDef *
TIMx, uint32_t Counter)
Set the counter value.
TIMx: Timer instance
Counter: Counter value (between Min_Data=0 and
Max_Data=0xFFFF or 0xFFFFFFFF)
None:
Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be
used to check whether or not a timer instance supports a 32
bits counter.
CNT CNT LL_TIM_SetCounter
__STATIC_INLINE uint32_t LL_TIM_GetCounter (TIM_TypeDef
* TIMx)
Get the counter value.
TIMx: Timer instance
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.
CNT CNT LL_TIM_GetCounter
__STATIC_INLINE uint32_t LL_TIM_GetDirection
(TIM_TypeDef * TIMx)
Get the current direction of the counter.
TIMx: Timer instance
Returned: value can be one of the following values:
LL_TIM_COUNTERDIRECTION_UP
LL_TIM_COUNTERDIRECTION_DOWN
CR1 DIR LL_TIM_GetDirection
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers