|
STM32L443xx HAL User Manual
|
Defines | |
| #define | __LL_USART_DIV_SAMPLING8(__PERIPHCLK__, __BAUDRATE__) |
| Compute USARTDIV value according to Peripheral Clock and expected Baud Rate in 8 bits sampling mode (32 bits value of USARTDIV is returned) | |
| #define | __LL_USART_DIV_SAMPLING16(__PERIPHCLK__, __BAUDRATE__) (((__PERIPHCLK__) + ((__BAUDRATE__)/2U))/(__BAUDRATE__)) |
| Compute USARTDIV value according to Peripheral Clock and expected Baud Rate in 16 bits sampling mode (32 bits value of USARTDIV is returned) | |
| #define __LL_USART_DIV_SAMPLING16 | ( | __PERIPHCLK__, | |
| __BAUDRATE__ | |||
| ) | (((__PERIPHCLK__) + ((__BAUDRATE__)/2U))/(__BAUDRATE__)) |
Compute USARTDIV value according to Peripheral Clock and expected Baud Rate in 16 bits sampling mode (32 bits value of USARTDIV is returned)
| __PERIPHCLK__ | Peripheral Clock frequency used for USART instance |
| __BAUDRATE__ | Baud rate value to achieve |
| USARTDIV | value to be used for BRR register filling in OverSampling_16 case |
Definition at line 660 of file stm32l4xx_ll_usart.h.
Referenced by LL_USART_SetBaudRate().
| #define __LL_USART_DIV_SAMPLING8 | ( | __PERIPHCLK__, | |
| __BAUDRATE__ | |||
| ) |
((((__PERIPHCLK__)*2U)\
+ ((__BAUDRATE__)/2U))/(__BAUDRATE__))
Compute USARTDIV value according to Peripheral Clock and expected Baud Rate in 8 bits sampling mode (32 bits value of USARTDIV is returned)
| __PERIPHCLK__ | Peripheral Clock frequency used for USART instance |
| __BAUDRATE__ | Baud rate value to achieve |
| USARTDIV | value to be used for BRR register filling in OverSampling_8 case |
Definition at line 629 of file stm32l4xx_ll_usart.h.
Referenced by LL_USART_SetBaudRate().
1.7.6.1