|
STM32F103xB HAL User Manual
|
UART State and Errors functions. More...
Functions | |
| HAL_UART_StateTypeDef | HAL_UART_GetState (UART_HandleTypeDef *huart) |
| Returns the UART state. | |
| uint32_t | HAL_UART_GetError (UART_HandleTypeDef *huart) |
| Return the UART error code. | |
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.
| uint32_t HAL_UART_GetError | ( | UART_HandleTypeDef * | huart | ) |
Return the UART error code.
| huart | Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART. |
| UART | Error Code |
Definition at line 2935 of file stm32f1xx_hal_uart.c.
References __UART_HandleTypeDef::ErrorCode.
Returns the UART state.
| huart | Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified UART module. |
| HAL | state |
Definition at line 2920 of file stm32f1xx_hal_uart.c.
References __UART_HandleTypeDef::gState, and __UART_HandleTypeDef::RxState.
1.7.6.1