STM32L486xx HAL User Manual
Functions
Peripheral State and Error functions
UART Exported Functions

UART Peripheral State functions. More...

Functions

HAL_UART_StateTypeDef HAL_UART_GetState (UART_HandleTypeDef *huart)
 Return the UART handle state.
uint32_t HAL_UART_GetError (UART_HandleTypeDef *huart)
 Return the UART handle error code.

Detailed Description

UART Peripheral State functions.

  ==============================================================================
            ##### Peripheral State and Error functions #####
  ==============================================================================
    [..]
    This subsection provides functions allowing to :
      (+) Return the UART handle state.
      (+) Return the UART handle error code


Function Documentation

uint32_t HAL_UART_GetError ( UART_HandleTypeDef huart)

Return the UART handle error code.

Parameters:
huartPointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART.
Return values:
UARTError Code

Definition at line 2739 of file stm32l4xx_hal_uart.c.

References __UART_HandleTypeDef::ErrorCode.

Return the UART handle state.

Parameters:
huartPointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART.
Return values:
HALstate

Definition at line 2724 of file stm32l4xx_hal_uart.c.

References __UART_HandleTypeDef::gState, and __UART_HandleTypeDef::RxState.