UART State and Errors functions.
More...
UART State and Errors functions.
==============================================================================
##### Peripheral State and Errors functions #####
==============================================================================
[..]
This subsection provides a set of functions allowing to return the State of
UART communication process, return Peripheral Errors occurred during communication
process
(+) HAL_UART_GetState() API can be helpful to check in run-time the state of the UART peripheral.
(+) HAL_UART_GetError() check in run-time errors that could be occurred during communication.
◆ HAL_UART_GetError()
Return the UART error code.
- Parameters
-
huart | Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART. |
- Return values
-
Definition at line 2943 of file stm32f4xx_hal_uart.c.
◆ HAL_UART_GetState()
Returns the UART state.
- Parameters
-
huart | Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART module. |
- Return values
-
Definition at line 2928 of file stm32f4xx_hal_uart.c.