USART Peripheral State and Error functions.
More...
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
◆ HAL_USART_GetError()
Return the USART error code.
- Parameters
-
| husart | pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART. |
- Return values
-
Definition at line 2523 of file stm32l4xx_hal_usart.c.
◆ HAL_USART_GetState()
Return the USART handle state.
- Parameters
-
| husart | pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART. |
- Return values
-
Definition at line 2512 of file stm32l4xx_hal_usart.c.
2514 return husart->
State;
__IO HAL_USART_StateTypeDef State