STM32L443xx HAL User Manual
|
Defines | |
#define | UART_DIV_LPUART(__PCLK__, __BAUD__) (((((uint64_t)(__PCLK__)*256U)) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register with LPUART. | |
#define | UART_DIV_SAMPLING8(__PCLK__, __BAUD__) ((((__PCLK__)*2U) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register in 8-bit oversampling mode. | |
#define | UART_DIV_SAMPLING16(__PCLK__, __BAUD__) (((__PCLK__) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register in 16-bit oversampling mode. | |
#define | UART_INSTANCE_LOWPOWER(__HANDLE__) (IS_LPUART_INSTANCE((__HANDLE__)->Instance)) |
Check whether or not UART instance is Low Power UART. | |
#define | IS_UART_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) < 10000001U) |
Check UART Baud rate. | |
#define | IS_UART_ASSERTIONTIME(__TIME__) ((__TIME__) <= 0x1FU) |
Check UART assertion time. | |
#define | IS_UART_DEASSERTIONTIME(__TIME__) ((__TIME__) <= 0x1FU) |
Check UART deassertion time. | |
#define | IS_UART_STOPBITS(__STOPBITS__) |
Ensure that UART frame number of stop bits is valid. | |
#define | IS_LPUART_STOPBITS(__STOPBITS__) |
Ensure that LPUART frame number of stop bits is valid. | |
#define | IS_UART_PARITY(__PARITY__) |
Ensure that UART frame parity is valid. | |
#define | IS_UART_HARDWARE_FLOW_CONTROL(__CONTROL__) |
Ensure that UART hardware flow control is valid. | |
#define | IS_UART_MODE(__MODE__) ((((__MODE__) & (~((uint32_t)(UART_MODE_TX_RX)))) == 0x00U) && ((__MODE__) != 0x00U)) |
Ensure that UART communication mode is valid. | |
#define | IS_UART_STATE(__STATE__) |
Ensure that UART state is valid. | |
#define | IS_UART_OVERSAMPLING(__SAMPLING__) |
Ensure that UART oversampling is valid. | |
#define | IS_UART_ONE_BIT_SAMPLE(__ONEBIT__) |
Ensure that UART frame sampling is valid. | |
#define | IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(__MODE__) |
Ensure that UART auto Baud rate detection mode is valid. | |
#define | IS_UART_RECEIVER_TIMEOUT(__TIMEOUT__) |
Ensure that UART receiver timeout setting is valid. | |
#define | IS_UART_RECEIVER_TIMEOUT_VALUE(__TIMEOUTVALUE__) ((__TIMEOUTVALUE__) <= 0xFFFFFFU) |
Check the receiver timeout value. | |
#define | IS_UART_LIN(__LIN__) |
Ensure that UART LIN state is valid. | |
#define | IS_UART_LIN_BREAK_DETECT_LENGTH(__LENGTH__) |
Ensure that UART LIN break detection length is valid. | |
#define | IS_UART_DMA_TX(__DMATX__) |
Ensure that UART DMA TX state is valid. | |
#define | IS_UART_DMA_RX(__DMARX__) |
Ensure that UART DMA RX state is valid. | |
#define | IS_UART_HALF_DUPLEX(__HDSEL__) |
Ensure that UART half-duplex state is valid. | |
#define | IS_UART_WAKEUPMETHOD(__WAKEUP__) |
Ensure that UART wake-up method is valid. | |
#define | IS_UART_REQUEST_PARAMETER(__PARAM__) |
Ensure that UART request parameter is valid. | |
#define | IS_UART_ADVFEATURE_INIT(__INIT__) |
Ensure that UART advanced features initialization is valid. | |
#define | IS_UART_ADVFEATURE_TXINV(__TXINV__) |
Ensure that UART frame TX inversion setting is valid. | |
#define | IS_UART_ADVFEATURE_RXINV(__RXINV__) |
Ensure that UART frame RX inversion setting is valid. | |
#define | IS_UART_ADVFEATURE_DATAINV(__DATAINV__) |
Ensure that UART frame data inversion setting is valid. | |
#define | IS_UART_ADVFEATURE_SWAP(__SWAP__) |
Ensure that UART frame RX/TX pins swap setting is valid. | |
#define | IS_UART_OVERRUN(__OVERRUN__) |
Ensure that UART frame overrun setting is valid. | |
#define | IS_UART_ADVFEATURE_AUTOBAUDRATE(__AUTOBAUDRATE__) |
Ensure that UART auto Baud rate state is valid. | |
#define | IS_UART_ADVFEATURE_DMAONRXERROR(__DMA__) |
Ensure that UART DMA enabling or disabling on error setting is valid. | |
#define | IS_UART_ADVFEATURE_MSBFIRST(__MSBFIRST__) |
Ensure that UART frame MSB first setting is valid. | |
#define | IS_UART_ADVFEATURE_STOPMODE(__STOPMODE__) |
Ensure that UART stop mode state is valid. | |
#define | IS_UART_MUTE_MODE(__MUTE__) |
Ensure that UART mute mode state is valid. | |
#define | IS_UART_WAKEUP_SELECTION(__WAKE__) |
Ensure that UART wake-up selection is valid. | |
#define | IS_UART_DE_POLARITY(__POLARITY__) |
Ensure that UART driver enable polarity is valid. |
#define IS_LPUART_STOPBITS | ( | __STOPBITS__ | ) |
(((__STOPBITS__) == UART_STOPBITS_1) || \ ((__STOPBITS__) == UART_STOPBITS_2))
Ensure that LPUART frame number of stop bits is valid.
__STOPBITS__ | LPUART frame number of stop bits. |
SET | (__STOPBITS__ is valid) or RESET (__STOPBITS__ is invalid) |
Definition at line 1359 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define IS_UART_ADVFEATURE_AUTOBAUDRATE | ( | __AUTOBAUDRATE__ | ) |
(((__AUTOBAUDRATE__) == \ UART_ADVFEATURE_AUTOBAUDRATE_DISABLE) || \ ((__AUTOBAUDRATE__) == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE))
Ensure that UART auto Baud rate state is valid.
__AUTOBAUDRATE__ | UART auto Baud rate state. |
SET | (__AUTOBAUDRATE__ is valid) or RESET (__AUTOBAUDRATE__ is invalid) |
Definition at line 1557 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_ADVFEATURE_AUTOBAUDRATEMODE | ( | __MODE__ | ) |
(((__MODE__) == UART_ADVFEATURE_AUTOBAUDRATE_ONSTARTBIT) || \ ((__MODE__) == UART_ADVFEATURE_AUTOBAUDRATE_ONFALLINGEDGE) || \ ((__MODE__) == UART_ADVFEATURE_AUTOBAUDRATE_ON0X7FFRAME) || \ ((__MODE__) == UART_ADVFEATURE_AUTOBAUDRATE_ON0X55FRAME))
Ensure that UART auto Baud rate detection mode is valid.
__MODE__ | UART auto Baud rate detection mode. |
SET | (__MODE__ is valid) or RESET (__MODE__ is invalid) |
Definition at line 1418 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_ADVFEATURE_DATAINV | ( | __DATAINV__ | ) |
(((__DATAINV__) == UART_ADVFEATURE_DATAINV_DISABLE) || \ ((__DATAINV__) == UART_ADVFEATURE_DATAINV_ENABLE))
Ensure that UART frame data inversion setting is valid.
__DATAINV__ | UART frame data inversion setting. |
SET | (__DATAINV__ is valid) or RESET (__DATAINV__ is invalid) |
Definition at line 1533 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_ADVFEATURE_DMAONRXERROR | ( | __DMA__ | ) |
(((__DMA__) == UART_ADVFEATURE_DMA_ENABLEONRXERROR) || \ ((__DMA__) == UART_ADVFEATURE_DMA_DISABLEONRXERROR))
Ensure that UART DMA enabling or disabling on error setting is valid.
__DMA__ | UART DMA enabling or disabling on error setting. |
SET | (__DMA__ is valid) or RESET (__DMA__ is invalid) |
Definition at line 1566 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_ADVFEATURE_INIT | ( | __INIT__ | ) |
((__INIT__) <= (UART_ADVFEATURE_NO_INIT | \ UART_ADVFEATURE_TXINVERT_INIT | \ UART_ADVFEATURE_RXINVERT_INIT | \ UART_ADVFEATURE_DATAINVERT_INIT | \ UART_ADVFEATURE_SWAP_INIT | \ UART_ADVFEATURE_RXOVERRUNDISABLE_INIT | \ UART_ADVFEATURE_DMADISABLEONERROR_INIT | \ UART_ADVFEATURE_AUTOBAUDRATE_INIT | \ UART_ADVFEATURE_MSBFIRST_INIT))
Ensure that UART advanced features initialization is valid.
__INIT__ | UART advanced features initialization. |
SET | (__INIT__ is valid) or RESET (__INIT__ is invalid) |
Definition at line 1502 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_ADVFEATURE_MSBFIRST | ( | __MSBFIRST__ | ) |
(((__MSBFIRST__) == UART_ADVFEATURE_MSBFIRST_DISABLE) || \ ((__MSBFIRST__) == UART_ADVFEATURE_MSBFIRST_ENABLE))
Ensure that UART frame MSB first setting is valid.
__MSBFIRST__ | UART frame MSB first setting. |
SET | (__MSBFIRST__ is valid) or RESET (__MSBFIRST__ is invalid) |
Definition at line 1574 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_ADVFEATURE_RXINV | ( | __RXINV__ | ) |
(((__RXINV__) == UART_ADVFEATURE_RXINV_DISABLE) || \ ((__RXINV__) == UART_ADVFEATURE_RXINV_ENABLE))
Ensure that UART frame RX inversion setting is valid.
__RXINV__ | UART frame RX inversion setting. |
SET | (__RXINV__ is valid) or RESET (__RXINV__ is invalid) |
Definition at line 1525 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_ADVFEATURE_STOPMODE | ( | __STOPMODE__ | ) |
(((__STOPMODE__) == UART_ADVFEATURE_STOPMODE_DISABLE) || \ ((__STOPMODE__) == UART_ADVFEATURE_STOPMODE_ENABLE))
Ensure that UART stop mode state is valid.
__STOPMODE__ | UART stop mode state. |
SET | (__STOPMODE__ is valid) or RESET (__STOPMODE__ is invalid) |
Definition at line 1582 of file stm32l4xx_hal_uart.h.
#define IS_UART_ADVFEATURE_SWAP | ( | __SWAP__ | ) |
(((__SWAP__) == UART_ADVFEATURE_SWAP_DISABLE) || \ ((__SWAP__) == UART_ADVFEATURE_SWAP_ENABLE))
Ensure that UART frame RX/TX pins swap setting is valid.
__SWAP__ | UART frame RX/TX pins swap setting. |
SET | (__SWAP__ is valid) or RESET (__SWAP__ is invalid) |
Definition at line 1541 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_ADVFEATURE_TXINV | ( | __TXINV__ | ) |
(((__TXINV__) == UART_ADVFEATURE_TXINV_DISABLE) || \ ((__TXINV__) == UART_ADVFEATURE_TXINV_ENABLE))
Ensure that UART frame TX inversion setting is valid.
__TXINV__ | UART frame TX inversion setting. |
SET | (__TXINV__ is valid) or RESET (__TXINV__ is invalid) |
Definition at line 1517 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_ASSERTIONTIME | ( | __TIME__ | ) | ((__TIME__) <= 0x1FU) |
Check UART assertion time.
__TIME__ | 5-bit value assertion time. |
Test | result (TRUE or FALSE). |
Definition at line 1336 of file stm32l4xx_hal_uart.h.
Referenced by HAL_RS485Ex_Init().
#define IS_UART_BAUDRATE | ( | __BAUDRATE__ | ) | ((__BAUDRATE__) < 10000001U) |
Check UART Baud rate.
__BAUDRATE__ | Baudrate specified by the user. The maximum Baud Rate is derived from the maximum clock on L4 divided by the smallest oversampling used on the USART (i.e. 8) (i.e. 120 MHz on STM32L4Rx/L4Sx, 80 Mhz otherwise) |
SET | (__BAUDRATE__ is valid) or RESET (__BAUDRATE__ is invalid) |
Definition at line 1329 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define IS_UART_DE_POLARITY | ( | __POLARITY__ | ) |
(((__POLARITY__) == UART_DE_POLARITY_HIGH) || \ ((__POLARITY__) == UART_DE_POLARITY_LOW))
Ensure that UART driver enable polarity is valid.
__POLARITY__ | UART driver enable polarity. |
SET | (__POLARITY__ is valid) or RESET (__POLARITY__ is invalid) |
Definition at line 1607 of file stm32l4xx_hal_uart.h.
Referenced by HAL_RS485Ex_Init().
#define IS_UART_DEASSERTIONTIME | ( | __TIME__ | ) | ((__TIME__) <= 0x1FU) |
Check UART deassertion time.
__TIME__ | 5-bit value deassertion time. |
Test | result (TRUE or FALSE). |
Definition at line 1342 of file stm32l4xx_hal_uart.h.
Referenced by HAL_RS485Ex_Init().
#define IS_UART_DMA_RX | ( | __DMARX__ | ) |
(((__DMARX__) == UART_DMA_RX_DISABLE) || \ ((__DMARX__) == UART_DMA_RX_ENABLE))
Ensure that UART DMA RX state is valid.
__DMARX__ | UART DMA RX state. |
SET | (__DMARX__ is valid) or RESET (__DMARX__ is invalid) |
Definition at line 1467 of file stm32l4xx_hal_uart.h.
#define IS_UART_DMA_TX | ( | __DMATX__ | ) |
(((__DMATX__) == UART_DMA_TX_DISABLE) || \ ((__DMATX__) == UART_DMA_TX_ENABLE))
Ensure that UART DMA TX state is valid.
__DMATX__ | UART DMA TX state. |
SET | (__DMATX__ is valid) or RESET (__DMATX__ is invalid) |
Definition at line 1459 of file stm32l4xx_hal_uart.h.
#define IS_UART_HALF_DUPLEX | ( | __HDSEL__ | ) |
(((__HDSEL__) == UART_HALF_DUPLEX_DISABLE) || \ ((__HDSEL__) == UART_HALF_DUPLEX_ENABLE))
Ensure that UART half-duplex state is valid.
__HDSEL__ | UART half-duplex state. |
SET | (__HDSEL__ is valid) or RESET (__HDSEL__ is invalid) |
Definition at line 1475 of file stm32l4xx_hal_uart.h.
#define IS_UART_HARDWARE_FLOW_CONTROL | ( | __CONTROL__ | ) |
(((__CONTROL__) == UART_HWCONTROL_NONE) || \ ((__CONTROL__) == UART_HWCONTROL_RTS) || \ ((__CONTROL__) == UART_HWCONTROL_CTS) || \ ((__CONTROL__) == UART_HWCONTROL_RTS_CTS))
Ensure that UART hardware flow control is valid.
__CONTROL__ | UART hardware flow control. |
SET | (__CONTROL__ is valid) or RESET (__CONTROL__ is invalid) |
Definition at line 1376 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define IS_UART_LIN | ( | __LIN__ | ) |
(((__LIN__) == UART_LIN_DISABLE) || \ ((__LIN__) == UART_LIN_ENABLE))
Ensure that UART LIN state is valid.
__LIN__ | UART LIN state. |
SET | (__LIN__ is valid) or RESET (__LIN__ is invalid) |
Definition at line 1443 of file stm32l4xx_hal_uart.h.
#define IS_UART_LIN_BREAK_DETECT_LENGTH | ( | __LENGTH__ | ) |
(((__LENGTH__) == UART_LINBREAKDETECTLENGTH_10B) || \ ((__LENGTH__) == UART_LINBREAKDETECTLENGTH_11B))
Ensure that UART LIN break detection length is valid.
__LENGTH__ | UART LIN break detection length. |
SET | (__LENGTH__ is valid) or RESET (__LENGTH__ is invalid) |
Definition at line 1451 of file stm32l4xx_hal_uart.h.
Referenced by HAL_LIN_Init().
#define IS_UART_MODE | ( | __MODE__ | ) | ((((__MODE__) & (~((uint32_t)(UART_MODE_TX_RX)))) == 0x00U) && ((__MODE__) != 0x00U)) |
Ensure that UART communication mode is valid.
__MODE__ | UART communication mode. |
SET | (__MODE__ is valid) or RESET (__MODE__ is invalid) |
Definition at line 1387 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define IS_UART_MUTE_MODE | ( | __MUTE__ | ) |
(((__MUTE__) == UART_ADVFEATURE_MUTEMODE_DISABLE) || \ ((__MUTE__) == UART_ADVFEATURE_MUTEMODE_ENABLE))
Ensure that UART mute mode state is valid.
__MUTE__ | UART mute mode state. |
SET | (__MUTE__ is valid) or RESET (__MUTE__ is invalid) |
Definition at line 1590 of file stm32l4xx_hal_uart.h.
#define IS_UART_ONE_BIT_SAMPLE | ( | __ONEBIT__ | ) |
(((__ONEBIT__) == UART_ONE_BIT_SAMPLE_DISABLE) || \ ((__ONEBIT__) == UART_ONE_BIT_SAMPLE_ENABLE))
Ensure that UART frame sampling is valid.
__ONEBIT__ | UART frame sampling. |
SET | (__ONEBIT__ is valid) or RESET (__ONEBIT__ is invalid) |
Definition at line 1410 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define IS_UART_OVERRUN | ( | __OVERRUN__ | ) |
(((__OVERRUN__) == UART_ADVFEATURE_OVERRUN_ENABLE) || \ ((__OVERRUN__) == UART_ADVFEATURE_OVERRUN_DISABLE))
Ensure that UART frame overrun setting is valid.
__OVERRUN__ | UART frame overrun setting. |
SET | (__OVERRUN__ is valid) or RESET (__OVERRUN__ is invalid) |
Definition at line 1549 of file stm32l4xx_hal_uart.h.
Referenced by UART_AdvFeatureConfig().
#define IS_UART_OVERSAMPLING | ( | __SAMPLING__ | ) |
(((__SAMPLING__) == UART_OVERSAMPLING_16) || \ ((__SAMPLING__) == UART_OVERSAMPLING_8))
Ensure that UART oversampling is valid.
__SAMPLING__ | UART oversampling. |
SET | (__SAMPLING__ is valid) or RESET (__SAMPLING__ is invalid) |
Definition at line 1402 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define IS_UART_PARITY | ( | __PARITY__ | ) |
(((__PARITY__) == UART_PARITY_NONE) || \ ((__PARITY__) == UART_PARITY_EVEN) || \ ((__PARITY__) == UART_PARITY_ODD))
Ensure that UART frame parity is valid.
__PARITY__ | UART frame parity. |
SET | (__PARITY__ is valid) or RESET (__PARITY__ is invalid) |
Definition at line 1367 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define IS_UART_RECEIVER_TIMEOUT | ( | __TIMEOUT__ | ) |
(((__TIMEOUT__) == UART_RECEIVER_TIMEOUT_DISABLE) || \ ((__TIMEOUT__) == UART_RECEIVER_TIMEOUT_ENABLE))
Ensure that UART receiver timeout setting is valid.
__TIMEOUT__ | UART receiver timeout setting. |
SET | (__TIMEOUT__ is valid) or RESET (__TIMEOUT__ is invalid) |
Definition at line 1428 of file stm32l4xx_hal_uart.h.
#define IS_UART_RECEIVER_TIMEOUT_VALUE | ( | __TIMEOUTVALUE__ | ) | ((__TIMEOUTVALUE__) <= 0xFFFFFFU) |
Check the receiver timeout value.
__TIMEOUTVALUE__ | receiver timeout value. |
Test | result (TRUE or FALSE) |
Definition at line 1436 of file stm32l4xx_hal_uart.h.
Referenced by HAL_UART_ReceiverTimeout_Config().
#define IS_UART_REQUEST_PARAMETER | ( | __PARAM__ | ) |
(((__PARAM__) == UART_AUTOBAUD_REQUEST) || \ ((__PARAM__) == UART_SENDBREAK_REQUEST) || \ ((__PARAM__) == UART_MUTE_MODE_REQUEST) || \ ((__PARAM__) == UART_RXDATA_FLUSH_REQUEST) || \ ((__PARAM__) == UART_TXDATA_FLUSH_REQUEST))
Ensure that UART request parameter is valid.
__PARAM__ | UART request parameter. |
SET | (__PARAM__ is valid) or RESET (__PARAM__ is invalid) |
Definition at line 1491 of file stm32l4xx_hal_uart.h.
#define IS_UART_STATE | ( | __STATE__ | ) |
(((__STATE__) == UART_STATE_DISABLE) || \ ((__STATE__) == UART_STATE_ENABLE))
Ensure that UART state is valid.
__STATE__ | UART state. |
SET | (__STATE__ is valid) or RESET (__STATE__ is invalid) |
Definition at line 1394 of file stm32l4xx_hal_uart.h.
#define IS_UART_STOPBITS | ( | __STOPBITS__ | ) |
(((__STOPBITS__) == UART_STOPBITS_0_5) || \ ((__STOPBITS__) == UART_STOPBITS_1) || \ ((__STOPBITS__) == UART_STOPBITS_1_5) || \ ((__STOPBITS__) == UART_STOPBITS_2))
Ensure that UART frame number of stop bits is valid.
__STOPBITS__ | UART frame number of stop bits. |
SET | (__STOPBITS__ is valid) or RESET (__STOPBITS__ is invalid) |
Definition at line 1349 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define IS_UART_WAKEUP_SELECTION | ( | __WAKE__ | ) |
(((__WAKE__) == UART_WAKEUP_ON_ADDRESS) || \ ((__WAKE__) == UART_WAKEUP_ON_STARTBIT) || \ ((__WAKE__) == UART_WAKEUP_ON_READDATA_NONEMPTY))
Ensure that UART wake-up selection is valid.
__WAKE__ | UART wake-up selection. |
SET | (__WAKE__ is valid) or RESET (__WAKE__ is invalid) |
Definition at line 1598 of file stm32l4xx_hal_uart.h.
Referenced by HAL_UARTEx_StopModeWakeUpSourceConfig().
#define IS_UART_WAKEUPMETHOD | ( | __WAKEUP__ | ) |
(((__WAKEUP__) == UART_WAKEUPMETHOD_IDLELINE) || \ ((__WAKEUP__) == UART_WAKEUPMETHOD_ADDRESSMARK))
Ensure that UART wake-up method is valid.
__WAKEUP__ | UART wake-up method . |
SET | (__WAKEUP__ is valid) or RESET (__WAKEUP__ is invalid) |
Definition at line 1483 of file stm32l4xx_hal_uart.h.
Referenced by HAL_MultiProcessor_Init().
#define UART_DIV_LPUART | ( | __PCLK__, | |
__BAUD__ | |||
) | (((((uint64_t)(__PCLK__)*256U)) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register with LPUART.
__PCLK__ | LPUART clock. |
__BAUD__ | Baud rate set by the user. |
Division | result |
Definition at line 1296 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define UART_DIV_SAMPLING16 | ( | __PCLK__, | |
__BAUD__ | |||
) | (((__PCLK__) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register in 16-bit oversampling mode.
__PCLK__ | UART clock. |
__BAUD__ | Baud rate set by the user. |
Division | result |
Definition at line 1310 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define UART_DIV_SAMPLING8 | ( | __PCLK__, | |
__BAUD__ | |||
) | ((((__PCLK__)*2U) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register in 8-bit oversampling mode.
__PCLK__ | UART clock. |
__BAUD__ | Baud rate set by the user. |
Division | result |
Definition at line 1303 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().
#define UART_INSTANCE_LOWPOWER | ( | __HANDLE__ | ) | (IS_LPUART_INSTANCE((__HANDLE__)->Instance)) |
Check whether or not UART instance is Low Power UART.
__HANDLE__ | specifies the UART Handle. |
SET | (instance is LPUART) or RESET (instance isn't LPUART) |
Definition at line 1317 of file stm32l4xx_hal_uart.h.
Referenced by UART_SetConfig().