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

Macros

#define USART_MASK_COMPUTATION(__HANDLE__)
 Compute the USART mask to apply to retrieve the received data according to the word length and to the parity bits activation.
 
#define IS_USART_WORD_LENGTH(__LENGTH__)
 Ensure that USART frame length is valid.
 
#define IS_USART_NSS(__NSS__)
 Ensure that USART Negative Slave Select (NSS) pin management is valid.
 
#define IS_USART_SLAVEMODE(__STATE__)
 Ensure that USART Slave Mode is valid.
 
#define IS_USART_FIFO_MODE_STATE(__STATE__)
 Ensure that USART FIFO mode is valid.
 
#define IS_USART_TXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that USART TXFIFO threshold level is valid.
 
#define IS_USART_RXFIFO_THRESHOLD(__THRESHOLD__)
 Ensure that USART RXFIFO threshold level is valid.
 

Detailed Description

Macro Definition Documentation

◆ IS_USART_FIFO_MODE_STATE

#define IS_USART_FIFO_MODE_STATE (   __STATE__)
Value:
(((__STATE__) == USART_FIFOMODE_DISABLE ) || \
((__STATE__) == USART_FIFOMODE_ENABLE))
#define USART_FIFOMODE_ENABLE
Definition: stm32h7xx_hal_usart_ex.h:84
#define USART_FIFOMODE_DISABLE
Definition: stm32h7xx_hal_usart_ex.h:83

Ensure that USART FIFO mode is valid.

Parameters
__STATE__USART FIFO mode.
Return values
SET(STATE is valid) or RESET (STATE is invalid)

◆ IS_USART_NSS

#define IS_USART_NSS (   __NSS__)
Value:
(((__NSS__) == USART_NSS_HARD) || \
((__NSS__) == USART_NSS_SOFT))
#define USART_NSS_SOFT
Definition: stm32h7xx_hal_usart_ex.h:61
#define USART_NSS_HARD
Definition: stm32h7xx_hal_usart_ex.h:60

Ensure that USART Negative Slave Select (NSS) pin management is valid.

Parameters
__NSS__USART Negative Slave Select pin management.
Return values
SET(NSS is valid) or RESET (NSS is invalid)

◆ IS_USART_RXFIFO_THRESHOLD

#define IS_USART_RXFIFO_THRESHOLD (   __THRESHOLD__)
Value:
(((__THRESHOLD__) == USART_RXFIFO_THRESHOLD_1_8) || \
((__THRESHOLD__) == USART_RXFIFO_THRESHOLD_1_4) || \
((__THRESHOLD__) == USART_RXFIFO_THRESHOLD_1_2) || \
((__THRESHOLD__) == USART_RXFIFO_THRESHOLD_3_4) || \
((__THRESHOLD__) == USART_RXFIFO_THRESHOLD_7_8) || \
((__THRESHOLD__) == USART_RXFIFO_THRESHOLD_8_8))
#define USART_RXFIFO_THRESHOLD_3_4
Definition: stm32h7xx_hal_usart_ex.h:112
#define USART_RXFIFO_THRESHOLD_8_8
Definition: stm32h7xx_hal_usart_ex.h:114
#define USART_RXFIFO_THRESHOLD_1_4
Definition: stm32h7xx_hal_usart_ex.h:110
#define USART_RXFIFO_THRESHOLD_1_8
Definition: stm32h7xx_hal_usart_ex.h:109
#define USART_RXFIFO_THRESHOLD_7_8
Definition: stm32h7xx_hal_usart_ex.h:113
#define USART_RXFIFO_THRESHOLD_1_2
Definition: stm32h7xx_hal_usart_ex.h:111

Ensure that USART RXFIFO threshold level is valid.

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

◆ IS_USART_SLAVEMODE

#define IS_USART_SLAVEMODE (   __STATE__)
Value:
(((__STATE__) == USART_SLAVEMODE_DISABLE ) || \
((__STATE__) == USART_SLAVEMODE_ENABLE))
#define USART_SLAVEMODE_ENABLE
Definition: stm32h7xx_hal_usart_ex.h:73
#define USART_SLAVEMODE_DISABLE
Definition: stm32h7xx_hal_usart_ex.h:72

Ensure that USART Slave Mode is valid.

Parameters
__STATE__USART Slave Mode.
Return values
SET(STATE is valid) or RESET (STATE is invalid)

◆ IS_USART_TXFIFO_THRESHOLD

#define IS_USART_TXFIFO_THRESHOLD (   __THRESHOLD__)
Value:
(((__THRESHOLD__) == USART_TXFIFO_THRESHOLD_1_8) || \
((__THRESHOLD__) == USART_TXFIFO_THRESHOLD_1_4) || \
((__THRESHOLD__) == USART_TXFIFO_THRESHOLD_1_2) || \
((__THRESHOLD__) == USART_TXFIFO_THRESHOLD_3_4) || \
((__THRESHOLD__) == USART_TXFIFO_THRESHOLD_7_8) || \
((__THRESHOLD__) == USART_TXFIFO_THRESHOLD_8_8))
#define USART_TXFIFO_THRESHOLD_8_8
Definition: stm32h7xx_hal_usart_ex.h:99
#define USART_TXFIFO_THRESHOLD_1_2
Definition: stm32h7xx_hal_usart_ex.h:96
#define USART_TXFIFO_THRESHOLD_1_8
Definition: stm32h7xx_hal_usart_ex.h:94
#define USART_TXFIFO_THRESHOLD_1_4
Definition: stm32h7xx_hal_usart_ex.h:95
#define USART_TXFIFO_THRESHOLD_7_8
Definition: stm32h7xx_hal_usart_ex.h:98
#define USART_TXFIFO_THRESHOLD_3_4
Definition: stm32h7xx_hal_usart_ex.h:97

Ensure that USART TXFIFO threshold level is valid.

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

◆ IS_USART_WORD_LENGTH

#define IS_USART_WORD_LENGTH (   __LENGTH__)
Value:
(((__LENGTH__) == USART_WORDLENGTH_7B) || \
((__LENGTH__) == USART_WORDLENGTH_8B) || \
((__LENGTH__) == USART_WORDLENGTH_9B))
#define USART_WORDLENGTH_9B
Definition: stm32h7xx_hal_usart_ex.h:51
#define USART_WORDLENGTH_7B
Definition: stm32h7xx_hal_usart_ex.h:49
#define USART_WORDLENGTH_8B
Definition: stm32h7xx_hal_usart_ex.h:50

Ensure that USART frame length is valid.

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

◆ USART_MASK_COMPUTATION

#define USART_MASK_COMPUTATION (   __HANDLE__)

Compute the USART 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 USART Handle.
Return values
None,themask to apply to USART RDR register is stored in (HANDLE)->Mask field.