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

USART Peripheral State and Error functions. More...

Functions

HAL_USART_StateTypeDef HAL_USART_GetState (USART_HandleTypeDef *husart)
 Return the USART handle state.
uint32_t HAL_USART_GetError (USART_HandleTypeDef *husart)
 Return the USART error code.

Detailed Description

USART Peripheral State and Error functions.

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


Function Documentation

uint32_t HAL_USART_GetError ( USART_HandleTypeDef husart)

Return the USART error code.

Parameters:
husartpointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART.
Return values:
USARThandle Error Code

Definition at line 2345 of file stm32l4xx_hal_usart.c.

References __USART_HandleTypeDef::ErrorCode.

Return the USART handle state.

Parameters:
husartpointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART.
Return values:
USARThandle state

Definition at line 2334 of file stm32l4xx_hal_usart.c.

References __USART_HandleTypeDef::State.