HAL_HalfDuplex_EnableReceiver 
HAL_StatusTypeDef HAL_HalfDuplex_EnableReceiver 
(UART_HandleTypeDef * huart) 
Enables the UART receiver and disables the UART transmitter.  
  huart:  pointer to a UART_HandleTypeDef structure that 
contains the configuration information for the specified UART 
module. 
HAL_UART_GetState 
HAL_UART_StateTypeDef HAL_UART_GetState 
(UART_HandleTypeDef * huart) 
  huart:  pointer to a UART_HandleTypeDef structure that 
contains the configuration information for the specified UART 
module. 
HAL_UART_GetError 
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. 
47.3  UART Firmware driver defines 
47.3.1  UART 
UART Error Code 
UART Exported Macros 
__HAL_UART_RESET_HANDLE_STATE 
Description: 
  Reset UART handle gstate &