RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros

Macros

#define UART_GETCLOCKSOURCE(__HANDLE__, __CLOCKSOURCE__)
 Report the UART clock source.
 
#define UART_MASK_COMPUTATION(__HANDLE__)
 Report the UART mask to apply to retrieve the received data according to the word length and to the parity bits activation.
 
#define IS_UART_WORD_LENGTH(__LENGTH__)
 Ensure that UART frame length is valid.
 
#define IS_UART_ADDRESSLENGTH_DETECT(__ADDRESS__)
 Ensure that UART wake-up address length is valid.
 
#define IS_UART_TXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that UART TXFIFO threshold level is valid.
 
#define IS_UART_RXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that UART RXFIFO threshold level is valid.
 

Detailed Description

Macro Definition Documentation

◆ IS_UART_ADDRESSLENGTH_DETECT

#define IS_UART_ADDRESSLENGTH_DETECT (   __ADDRESS__)
Value:
(((__ADDRESS__) == UART_ADDRESS_DETECT_4B) || \
((__ADDRESS__) == UART_ADDRESS_DETECT_7B))
#define UART_ADDRESS_DETECT_7B
Definition: stm32h7xx_hal_uart_ex.h:86
#define UART_ADDRESS_DETECT_4B
Definition: stm32h7xx_hal_uart_ex.h:85

Ensure that UART wake-up address length is valid.

Parameters
__ADDRESS__UART wake-up address length.
Return values
SET(ADDRESS is valid) or RESET (ADDRESS is invalid)

◆ IS_UART_RXFIFO_THRESHOLD

#define IS_UART_RXFIFO_THRESHOLD (   __THRESHOLD__)
Value:
(((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_1_8) || \
((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_1_4) || \
((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_1_2) || \
((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_3_4) || \
((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_7_8) || \
((__THRESHOLD__) == UART_RXFIFO_THRESHOLD_8_8))
#define UART_RXFIFO_THRESHOLD_1_2
Definition: stm32h7xx_hal_uart_ex.h:124
#define UART_RXFIFO_THRESHOLD_1_4
Definition: stm32h7xx_hal_uart_ex.h:123
#define UART_RXFIFO_THRESHOLD_3_4
Definition: stm32h7xx_hal_uart_ex.h:125
#define UART_RXFIFO_THRESHOLD_1_8
Definition: stm32h7xx_hal_uart_ex.h:122
#define UART_RXFIFO_THRESHOLD_7_8
Definition: stm32h7xx_hal_uart_ex.h:126
#define UART_RXFIFO_THRESHOLD_8_8
Definition: stm32h7xx_hal_uart_ex.h:127

Ensure that UART RXFIFO threshold level is valid.

Parameters
__THRESHOLD__UART RXFIFO threshold level.
Return values
SET(THRESHOLD is valid) or RESET (THRESHOLD is invalid)

◆ IS_UART_TXFIFO_THRESHOLD

#define IS_UART_TXFIFO_THRESHOLD (   __THRESHOLD__)
Value:
(((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_1_8) || \
((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_1_4) || \
((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_1_2) || \
((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_3_4) || \
((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_7_8) || \
((__THRESHOLD__) == UART_TXFIFO_THRESHOLD_8_8))
#define UART_TXFIFO_THRESHOLD_3_4
Definition: stm32h7xx_hal_uart_ex.h:110
#define UART_TXFIFO_THRESHOLD_8_8
Definition: stm32h7xx_hal_uart_ex.h:112
#define UART_TXFIFO_THRESHOLD_1_2
Definition: stm32h7xx_hal_uart_ex.h:109
#define UART_TXFIFO_THRESHOLD_1_4
Definition: stm32h7xx_hal_uart_ex.h:108
#define UART_TXFIFO_THRESHOLD_7_8
Definition: stm32h7xx_hal_uart_ex.h:111
#define UART_TXFIFO_THRESHOLD_1_8
Definition: stm32h7xx_hal_uart_ex.h:107

Ensure that UART TXFIFO threshold level is valid.

Parameters
__THRESHOLD__UART TXFIFO threshold level.
Return values
SET(THRESHOLD is valid) or RESET (THRESHOLD is invalid)

◆ IS_UART_WORD_LENGTH

#define IS_UART_WORD_LENGTH (   __LENGTH__)
Value:
(((__LENGTH__) == UART_WORDLENGTH_7B) || \
((__LENGTH__) == UART_WORDLENGTH_8B) || \
((__LENGTH__) == UART_WORDLENGTH_9B))
#define UART_WORDLENGTH_7B
Definition: stm32h7xx_hal_uart_ex.h:74
#define UART_WORDLENGTH_8B
Definition: stm32h7xx_hal_uart_ex.h:75
#define UART_WORDLENGTH_9B
Definition: stm32h7xx_hal_uart_ex.h:76

Ensure that UART frame length is valid.

Parameters
__LENGTH__UART frame length.
Return values
SET(LENGTH is valid) or RESET (LENGTH is invalid)

◆ UART_GETCLOCKSOURCE

#define UART_GETCLOCKSOURCE (   __HANDLE__,
  __CLOCKSOURCE__ 
)

Report the UART clock source.

Parameters
__HANDLE__specifies the UART Handle.
__CLOCKSOURCE__output variable.
Return values
UARTclocking source, written in CLOCKSOURCE.

◆ UART_MASK_COMPUTATION

#define UART_MASK_COMPUTATION (   __HANDLE__)

Report the UART mask to apply to retrieve the received data according to the word length and to the parity bits activation.

Note
If PCE = 1, the parity bit is not included in the data extracted by the reception API(). This masking operation is not carried out in the case of DMA transfers.
Parameters
__HANDLE__specifies the UART Handle.
Return values
None,themask to apply to UART RDR register is stored in (HANDLE)->Mask field.