/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_set_modemstatus_handler(mss_uart_instance_t *this_uart, mss_uart_irq_handler_t handler)
/* See mss_uart.h for details of how to use this function.  */
void MSS_UART_set_modemstatus_handler(mss_uart_instance_t *this_uart, mss_uart_irq_handler_t handler)
{
    ASSERT((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1));
    ASSERT(handler != INVALID_IRQ_HANDLER);
    if(((this_uart == &g_mss_uart0) || (this_uart == &g_mss_uart1)) &&
       (handler != INVALID_IRQ_HANDLER))
    {
        this_uart->modemsts_handler = handler;
        NVIC_ClearPendingIRQ(this_uart->irqn);
        set_bit_reg8(&this_uart->hw_reg->IER,EDSSI);
        NVIC_EnableIRQ(this_uart->irqn);
    }
}