STM32F479xx HAL User Manual
|
USART State and Errors functions. More...
Functions | |
HAL_USART_StateTypeDef | HAL_USART_GetState (USART_HandleTypeDef *husart) |
Returns the USART state. | |
uint32_t | HAL_USART_GetError (USART_HandleTypeDef *husart) |
Return the USART error code. |
USART State and Errors functions.
============================================================================== ##### Peripheral State and Errors functions ##### ============================================================================== [..] This subsection provides a set of functions allowing to return the State of USART communication process, return Peripheral Errors occurred during communication process (+) HAL_USART_GetState() API can be helpful to check in run-time the state of the USART peripheral. (+) HAL_USART_GetError() check in run-time errors that could be occurred during communication.
uint32_t HAL_USART_GetError | ( | USART_HandleTypeDef * | husart | ) |
Return the USART error code.
husart | Pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART. |
USART | Error Code |
Definition at line 2071 of file stm32f4xx_hal_usart.c.
References __USART_HandleTypeDef::ErrorCode.
Returns the USART state.
husart | Pointer to a USART_HandleTypeDef structure that contains the configuration information for the specified USART module. |
HAL | state |
Definition at line 2060 of file stm32f4xx_hal_usart.c.
References __USART_HandleTypeDef::State.