Macros | |
#define | IS_USART_BAUDRATE(__BAUDRATE__) ((__BAUDRATE__) <= 27000000U) |
Check USART Baud rate. More... | |
#define | IS_USART_CLOCK(__CLOCK__) |
Ensure that USART clock state is valid. More... | |
#define | IS_USART_LASTBIT(__LASTBIT__) |
Ensure that USART frame last bit clock pulse setting is valid. More... | |
#define | IS_USART_MODE(__MODE__) ((((__MODE__) & 0xFFFFFFF3U) == 0x00U) && ((__MODE__) != 0x00U)) |
Ensure that USART communication mode is valid. More... | |
#define | IS_USART_OVERSAMPLING(__SAMPLING__) |
Ensure that USART oversampling is valid. More... | |
#define | IS_USART_PARITY(__PARITY__) |
Ensure that USART frame parity is valid. More... | |
#define | IS_USART_PHASE(__CPHA__) (((__CPHA__) == USART_PHASE_1EDGE) || ((__CPHA__) == USART_PHASE_2EDGE)) |
Ensure that USART frame phase is valid. More... | |
#define | IS_USART_POLARITY(__CPOL__) (((__CPOL__) == USART_POLARITY_LOW) || ((__CPOL__) == USART_POLARITY_HIGH)) |
Ensure that USART frame polarity is valid. More... | |
#define | IS_USART_REQUEST_PARAMETER(__PARAM__) |
Ensure that USART request parameter is valid. More... | |
#define | IS_USART_STOPBITS(__STOPBITS__) |
Ensure that USART frame number of stop bits is valid. More... | |
#define | USART_DIV_SAMPLING8(__PCLK__, __BAUD__) ((((__PCLK__)*2U) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register in 8-bit oversampling mode. More... | |
#define | USART_GETCLOCKSOURCE(__HANDLE__, __CLOCKSOURCE__) |
Report the USART clock source. More... | |
#define IS_USART_BAUDRATE | ( | __BAUDRATE__ | ) | ((__BAUDRATE__) <= 27000000U) |
Check USART Baud rate.
<strong>BAUDRATE</strong> | Baudrate specified by the user. The maximum Baud Rate is derived from the maximum clock on F7 (i.e. 216 MHz) divided by the smallest oversampling used on the USART (i.e. 8) |
SET | (BAUDRATE is valid) or RESET (BAUDRATE is invalid) |
Definition at line 703 of file stm32f7xx_hal_usart.h.
#define IS_USART_CLOCK | ( | __CLOCK__ | ) |
Ensure that USART clock state is valid.
<strong>CLOCK</strong> | USART clock state. |
SET | (CLOCK is valid) or RESET (CLOCK is invalid) |
Definition at line 744 of file stm32f7xx_hal_usart.h.
#define IS_USART_LASTBIT | ( | __LASTBIT__ | ) |
Ensure that USART frame last bit clock pulse setting is valid.
<strong>LASTBIT</strong> | USART frame last bit clock pulse setting. |
SET | (LASTBIT is valid) or RESET (LASTBIT is invalid) |
Definition at line 766 of file stm32f7xx_hal_usart.h.
#define IS_USART_MODE | ( | __MODE__ | ) | ((((__MODE__) & 0xFFFFFFF3U) == 0x00U) && ((__MODE__) != 0x00U)) |
Ensure that USART communication mode is valid.
<strong>MODE</strong> | USART communication mode. |
SET | (MODE is valid) or RESET (MODE is invalid) |
Definition at line 729 of file stm32f7xx_hal_usart.h.
#define IS_USART_OVERSAMPLING | ( | __SAMPLING__ | ) |
Ensure that USART oversampling is valid.
<strong>SAMPLING</strong> | USART oversampling. |
SET | (SAMPLING is valid) or RESET (SAMPLING is invalid) |
Definition at line 736 of file stm32f7xx_hal_usart.h.
#define IS_USART_PARITY | ( | __PARITY__ | ) |
Ensure that USART frame parity is valid.
<strong>PARITY</strong> | USART frame parity. |
SET | (PARITY is valid) or RESET (PARITY is invalid) |
Definition at line 720 of file stm32f7xx_hal_usart.h.
#define IS_USART_PHASE | ( | __CPHA__ | ) | (((__CPHA__) == USART_PHASE_1EDGE) || ((__CPHA__) == USART_PHASE_2EDGE)) |
Ensure that USART frame phase is valid.
<strong>CPHA</strong> | USART frame phase. |
SET | (CPHA is valid) or RESET (CPHA is invalid) |
Definition at line 759 of file stm32f7xx_hal_usart.h.
#define IS_USART_POLARITY | ( | __CPOL__ | ) | (((__CPOL__) == USART_POLARITY_LOW) || ((__CPOL__) == USART_POLARITY_HIGH)) |
Ensure that USART frame polarity is valid.
<strong>CPOL</strong> | USART frame polarity. |
SET | (CPOL is valid) or RESET (CPOL is invalid) |
Definition at line 752 of file stm32f7xx_hal_usart.h.
#define IS_USART_REQUEST_PARAMETER | ( | __PARAM__ | ) |
Ensure that USART request parameter is valid.
<strong>PARAM</strong> | USART request parameter. |
SET | (PARAM is valid) or RESET (PARAM is invalid) |
Definition at line 774 of file stm32f7xx_hal_usart.h.
#define IS_USART_STOPBITS | ( | __STOPBITS__ | ) |
Ensure that USART frame number of stop bits is valid.
<strong>STOPBITS</strong> | USART frame number of stop bits. |
SET | (STOPBITS is valid) or RESET (STOPBITS is invalid) |
Definition at line 710 of file stm32f7xx_hal_usart.h.
#define USART_DIV_SAMPLING8 | ( | __PCLK__, | |
__BAUD__ | |||
) | ((((__PCLK__)*2U) + ((__BAUD__)/2U)) / (__BAUD__)) |
BRR division operation to set BRR register in 8-bit oversampling mode.
<strong>PCLK</strong> | USART clock. |
<strong>BAUD</strong> | Baud rate set by the user. |
Division | result |
Definition at line 599 of file stm32f7xx_hal_usart.h.
#define USART_GETCLOCKSOURCE | ( | __HANDLE__, | |
__CLOCKSOURCE__ | |||
) |
Report the USART clock source.
<strong>HANDLE</strong> | specifies the USART Handle. |
<strong>CLOCKSOURCE</strong> | output variable. |
the | USART clocking source, written in CLOCKSOURCE. |
Definition at line 606 of file stm32f7xx_hal_usart.h.