Macros
USARTEx Private Macros
Collaboration diagram for USARTEx Private Macros:

Macros

#define IS_USART_WORD_LENGTH(__LENGTH__)
 Ensure that USART frame length is valid. More...
 
#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. More...
 

Detailed Description

Macro Definition Documentation

◆ IS_USART_WORD_LENGTH

#define IS_USART_WORD_LENGTH (   __LENGTH__)
Value:
(((__LENGTH__) == USART_WORDLENGTH_7B) || \
((__LENGTH__) == USART_WORDLENGTH_8B) || \
((__LENGTH__) == USART_WORDLENGTH_9B))

Ensure that USART frame length is valid.

Parameters
<strong>LENGTH</strong>USART frame length.
Return values
SET(LENGTH is valid) or RESET (LENGTH is invalid)

Definition at line 120 of file stm32f7xx_hal_usart_ex.h.

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

Definition at line 74 of file stm32f7xx_hal_usart_ex.h.

USART_WORDLENGTH_7B
#define USART_WORDLENGTH_7B
Definition: stm32f7xx_hal_usart_ex.h:48
USART_WORDLENGTH_8B
#define USART_WORDLENGTH_8B
Definition: stm32f7xx_hal_usart_ex.h:49
USART_WORDLENGTH_9B
#define USART_WORDLENGTH_9B
Definition: stm32f7xx_hal_usart_ex.h:50


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:08