Exported_Macros_Helper
+ Collaboration diagram for Exported_Macros_Helper:

Macros

#define __LL_UART_DIV(__PERIPHCLK__, __BAUDRATE__)   ((__PERIPHCLK__) / (__BAUDRATE__) / 16)
 Compute UARTDIV value according to Peripheral Clock and expected Baud Rate (32 bits value of UARTDIV is returned) More...
 
#define __LL_UART_DLF(__PERIPHCLK__, __BAUDRATE__)   ((__PERIPHCLK__) / (__BAUDRATE__) % 16)
 Compute UARTDLF value according to Peripheral Clock and expected Baud Rate (32 bits value of UARTDLF is returned) More...
 

Detailed Description

Macro Definition Documentation

◆ __LL_UART_DIV

#define __LL_UART_DIV (   __PERIPHCLK__,
  __BAUDRATE__ 
)    ((__PERIPHCLK__) / (__BAUDRATE__) / 16)

Compute UARTDIV value according to Peripheral Clock and expected Baud Rate (32 bits value of UARTDIV is returned)

Parameters
<strong>PERIPHCLK</strong>Peripheral Clock frequency used for UART instance
<strong>BAUDRATE</strong>Baud rate value to achieve
Return values
UARTDIVvalue to be used for DLL,DLH registers

Definition at line 276 of file gr55xx_ll_uart.h.

◆ __LL_UART_DLF

#define __LL_UART_DLF (   __PERIPHCLK__,
  __BAUDRATE__ 
)    ((__PERIPHCLK__) / (__BAUDRATE__) % 16)

Compute UARTDLF value according to Peripheral Clock and expected Baud Rate (32 bits value of UARTDLF is returned)

Parameters
<strong>PERIPHCLK</strong>Peripheral Clock frequency used for UART instance
<strong>BAUDRATE</strong>Baud rate value to achieve
Return values
UARTDLFvalue to be used for DLL,DLH registers

Definition at line 285 of file gr55xx_ll_uart.h.