/* See mss_uart.h for details of how to use this function.  */
int8_t MSS_UART_tx_complete(mss_uart_instance_t *this_uart)
/* See mss_uart.h for details of how to use this function.  */
int8_t MSS_UART_tx_complete(mss_uart_instance_t *this_uart)
{
    int8_t ret_value = 0;
    uint8_t status = 0u;
    ASSERT((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1));
    if((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1))
    {
        status = this_uart->hw_reg->LSR;
        this_uart->status |= status;
        if((TX_COMPLETE == this_uart->tx_buff_size) &&
           ((status & MSS_UART_TEMT) != 0u))
        {
            ret_value = (int8_t)1;
        }
    }
    return ret_value;
}