/* Gets the states of the RI, DCD, DSR and CTS modem status signals. */
unsigned long UARTModemStatusGet(unsigned long ulBase)
/* Gets the states of the RI, DCD, DSR and CTS modem status signals. */
unsigned long UARTModemStatusGet(unsigned long ulBase)
{
    ASSERT(!CLASS_IS_SANDSTORM && !CLASS_IS_FURY && !CLASS_IS_DUSTDEVIL);
    ASSERT(ulBase == UART1_BASE);
    return(HWREG(ulBase + UART_O_FR) & (UART_INPUT_RI | UART_INPUT_DCD |
           UART_INPUT_CTS | UART_INPUT_DSR));
}