HAL
+
0
/8 examples
SourceVu will show references to
__LL_TIM_CALC_ARR
from the following samples and libraries:
Examples
STM32F411RE-Nucleo
Examples_LL
TIM
TIM_BreakAndDeadtime
TIM_DMA
TIM_InputCapture
TIM_OutputCompare
TIM_PWMOutput
TIM_PWMOutput_Init
TIM_TimeBase
Examples_MIX
TIM
TIM_PWMInput
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
STM32 Libraries and Samples
HAL
__LL_TIM_CALC_ARR
__LL_TIM_CALC_ARR macro
HELPER macro calculating the auto-reload value to achieve the required output signal frequency.
Syntax
Show:
Summary
Declaration
from
stm32f4xx_ll_tim.h:1054
#define
__LL_TIM_CALC_ARR
(
__TIMCLK__
,
__PSC__
,
__FREQ__
)
\
(
(
(
(
__TIMCLK__
)
/
(
(
__PSC__
)
+
1U
)
)
>=
(
__FREQ__
)
)
?
(
(
(
__TIMCLK__
)
/
(
(
__FREQ__
)
*
(
(
__PSC__
)
+
1U
)
)
)
-
1U
)
:
0U
)
Arguments
Argument
Description
__TIMCLK__
timer input clock frequency (in Hz)
__PSC__
prescaler
__FREQ__
output signal frequency (in Hz)
Return value
Auto-reload value (between Min_Data=0 and Max_Data=65535)
Notes
ex:
__LL_TIM_CALC_ARR
(1000000, LL_TIM_GetPrescaler (), 10000);
Examples
__LL_TIM_CALC_ARR
is referenced by 8 libraries and example projects:
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out