STM32L486xx HAL User Manual
Defines
USARTEx Private Macros
USARTEx

Defines

#define USART_GETCLOCKSOURCE(__HANDLE__, __CLOCKSOURCE__)
 Report the USART clock source.
#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 Documentation

#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:
__LENGTH__USART frame length.
Return values:
SET(__LENGTH__ is valid) or RESET (__LENGTH__ is invalid)

Definition at line 314 of file stm32l4xx_hal_usart_ex.h.

Referenced by USART_SetConfig().

#define USART_GETCLOCKSOURCE (   __HANDLE__,
  __CLOCKSOURCE__ 
)

Report the USART clock source.

Parameters:
__HANDLE__specifies the USART Handle.
__CLOCKSOURCE__output variable.
Return values:
theUSART clocking source, written in __CLOCKSOURCE__.

Definition at line 194 of file stm32l4xx_hal_usart_ex.h.

Referenced by USART_SetConfig().

#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.

Definition at line 271 of file stm32l4xx_hal_usart_ex.h.

Referenced by HAL_USART_Receive(), HAL_USART_Receive_IT(), HAL_USART_TransmitReceive(), and HAL_USART_TransmitReceive_IT().