EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1172 background imageLoading...
Page #1172 background image
LL TIM Generic Driver
UM1940
1172/1371
DocID028236 Rev 2
reference:
LL_TIM_SetCounter
Function name
__STATIC_INLINE void LL_TIM_SetCounter (TIM_TypeDef *
TIMx, uint32_t Counter)
Function description
Set the counter value.
Parameters
TIMx: Timer instance
Counter: Counter value (between Min_Data=0 and
Max_Data=0xFFFF or 0xFFFFFFFF)
Return values
None:
Notes
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
Function name
__STATIC_INLINE uint32_t LL_TIM_GetCounter (TIM_TypeDef
* TIMx)
Function description
Get the counter value.
Parameters
TIMx: Timer instance
Return values
Counter: value (between Min_Data=0 and
Max_Data=0xFFFF or 0xFFFFFFFF)
Notes
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
Function name
__STATIC_INLINE uint32_t LL_TIM_GetDirection
(TIM_TypeDef * TIMx)
Function description
Get the current direction of the counter.
Parameters
TIMx: Timer instance
Return values
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals