/* Receive one 8-9 bit frame, with extended information. 
This function is normally used to receive one frame and additional RX status information is required. */
uint16_t LEUART_RxExt(LEUART_TypeDef *leuart)
/* Receive one 8-9 bit frame, with extended information. 
This function is normally used to receive one frame and additional RX status information is required. */
uint16_t LEUART_RxExt(LEUART_TypeDef *leuart)
{
  while (!(leuart->STATUS & LEUART_STATUS_RXDATAV))
    ;
  return (uint16_t)(leuart->RXDATAX);
}