HAL
SMARTCARD_DIV
is only used within HAL.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
HAL
SMARTCARD_DIV
SMARTCARD_DIV macro
Syntax
from
stm32f4xx_hal_smartcard.h:720
#define
SMARTCARD_DIV
(
__PCLK__
,
__BAUD__
)
(
(
uint32_t
)
(
(
(
(
uint64_t
)
(
__PCLK__
)
)
*
25U
)
/
(
4U
*
(
(
uint64_t
)
(
__BAUD__
)
)
)
)
)
Arguments
__PCLK__
__BAUD__
References
Location
Text
stm32f4xx_hal_smartcard.h:720
#define
SMARTCARD_DIV
(
__PCLK__
,
__BAUD__
)
(
(
uint32_t
)
(
(
(
(
uint64_t
)
(
__PCLK__
)
)
*
25U
)
/
(
4U
*
(
(
uint64_t
)
(
__BAUD__
)
)
)
)
)
stm32f4xx_hal_smartcard.h:721
#define
SMARTCARD_DIVMANT
(
__PCLK__
,
__BAUD__
)
(
SMARTCARD_DIV
(
(
__PCLK__
)
,
(
__BAUD__
)
)
/
100U
)
stm32f4xx_hal_smartcard.h:722
#define
SMARTCARD_DIVFRAQ
(
__PCLK__
,
__BAUD__
)
(
(
(
(
SMARTCARD_DIV
(
(
__PCLK__
)
,
(
__BAUD__
)
)
-
(
SMARTCARD_DIVMANT
(
(
__PCLK__
)
,
(
__BAUD__
)
)
*
100U
)
)
*
16U
)
+
50U
)
/
100U
)