/* 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;
    uint32_t transmit_empty = this_uart->hw_reg_bit->LSR_TEMT;
    ASSERT( (this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1) );
    if ( ( TX_COMPLETE == this_uart->tx_buff_size ) && transmit_empty )
    {
        ret_value = 1;
    }
    return ret_value;
}