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 #1188 background imageLoading...
Page #1188 background image
LL TIM Generic Driver
UM1940
1188/1371
DocID028236 Rev 2
(TIM_TypeDef * TIMx, uint32_t CompareValue)
Function description
Set compare value for output channel 4 (TIMx_CCR4).
Parameters
TIMx: Timer instance
CompareValue: between Min_Data=0 and
Max_Data=65535
Return values
None:
Notes
In 32-bit timer implementations compare value can be
between 0x00000000 and 0xFFFFFFFF.
Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be
used to check whether or not a timer instance supports a 32
bits counter.
Macro IS_TIM_CC4_INSTANCE(TIMx) can be used to check
whether or not output channel 4 is supported by a timer
instance.
Reference Manual to
LL API cross
reference:
CCR4 CCR4 LL_TIM_OC_SetCompareCH4
LL_TIM_OC_GetCompareCH1
Function name
__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH1
(TIM_TypeDef * TIMx)
Function description
Get compare value (TIMx_CCR1) set for output channel 1.
Parameters
TIMx: Timer instance
Return values
CompareValue: (between Min_Data=0 and
Max_Data=65535)
Notes
In 32-bit timer implementations returned compare value can
be between 0x00000000 and 0xFFFFFFFF.
Macro IS_TIM_32B_COUNTER_INSTANCE(TIMx) can be
used to check whether or not a timer instance supports a 32
bits counter.
Macro IS_TIM_CC1_INSTANCE(TIMx) can be used to check
whether or not output channel 1 is supported by a timer
instance.
Reference Manual to
LL API cross
reference:
CCR1 CCR1 LL_TIM_OC_GetCompareCH1
LL_TIM_OC_GetCompareCH2
Function name
__STATIC_INLINE uint32_t LL_TIM_OC_GetCompareCH2
(TIM_TypeDef * TIMx)
Function description
Get compare value (TIMx_CCR2) set for output channel 2.
Parameters
TIMx: Timer instance
Return values
CompareValue: (between Min_Data=0 and
Max_Data=65535)
Notes
In 32-bit timer implementations returned compare value can

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