STM32H735xx HAL User Manual
|
Defines | |
#define | __LL_USART_DIV_SAMPLING8(__PERIPHCLK__, __PRESCALER__, __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__, __PRESCALER__, __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__, | |
__PRESCALER__, | |||
__BAUDRATE__ | |||
) |
((((__PERIPHCLK__)/(USART_PRESCALER_TAB[(__PRESCALER__)]))\ + ((__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 |
__PRESCALER__ | This parameter can be one of the following values: |
__BAUDRATE__ | Baud rate value to achieve |
USARTDIV | value to be used for BRR register filling in OverSampling_16 case |
Definition at line 600 of file stm32h7xx_ll_usart.h.
Referenced by LL_USART_SetBaudRate().
#define __LL_USART_DIV_SAMPLING8 | ( | __PERIPHCLK__, | |
__PRESCALER__, | |||
__BAUDRATE__ | |||
) |
(((((__PERIPHCLK__)/(USART_PRESCALER_TAB[(__PRESCALER__)]))*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 |
__PRESCALER__ | This parameter can be one of the following values: |
__BAUDRATE__ | Baud rate value to achieve |
USARTDIV | value to be used for BRR register filling in OverSampling_8 case |
Definition at line 576 of file stm32h7xx_ll_usart.h.
Referenced by LL_USART_SetBaudRate().