STM32L486xx HAL User Manual
Defines
UARTEx Private Macros
UARTEx

Defines

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

#define IS_UART_ADDRESSLENGTH_DETECT (   __ADDRESS__)
Value:
(((__ADDRESS__) == UART_ADDRESS_DETECT_4B) || \
                                                   ((__ADDRESS__) == UART_ADDRESS_DETECT_7B))

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)

Definition at line 677 of file stm32l4xx_hal_uart_ex.h.

Referenced by HAL_MultiProcessorEx_AddressLength_Set(), and UARTEx_Wakeup_AddressConfig().

#define IS_UART_WORD_LENGTH (   __LENGTH__)
Value:
(((__LENGTH__) == UART_WORDLENGTH_7B) || \
                                         ((__LENGTH__) == UART_WORDLENGTH_8B) || \
                                         ((__LENGTH__) == UART_WORDLENGTH_9B))

Ensure that UART frame length is valid.

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

Definition at line 668 of file stm32l4xx_hal_uart_ex.h.

Referenced by UART_SetConfig().

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

Definition at line 221 of file stm32l4xx_hal_uart_ex.h.

Referenced by UART_SetConfig().

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

Definition at line 625 of file stm32l4xx_hal_uart_ex.h.

Referenced by HAL_UART_Receive(), and HAL_UART_Receive_IT().