/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_set_loopback(mss_uart_instance_t *this_uart, mss_uart_loopback_t loopback)
/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_set_loopback(mss_uart_instance_t *this_uart, mss_uart_loopback_t loopback)
{
    ASSERT( (this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1) );
    if ( loopback == MSS_UART_LOOPBACK_OFF )
    {
        this_uart->hw_reg_bit->MCR_LOOP = 0U;
    }
    else
    {
        this_uart->hw_reg_bit->MCR_LOOP = 1U;
    }
}