/* See mss_uart.h for details of how to use this function.  */
uint8_t MSS_UART_get_rx_status(mss_uart_instance_t *this_uart)
/* See mss_uart.h for details of how to use this function.  */
uint8_t MSS_UART_get_rx_status(mss_uart_instance_t *this_uart)
{
    uint8_t status = MSS_UART_INVALID_PARAM;
    ASSERT((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1));
    if((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1))
    {
        this_uart->status |= (this_uart->hw_reg->LSR);
        status = (this_uart->status & STATUS_ERROR_MASK);
        this_uart->status = 0u;
    }
    return status;
}