ComMdmStatus

This function returns the current modem status and settings from the UART's Modem Status and Control Registers.

ComMdmStatus permits a UART and modem aware application to read the modem control signal settings and status signals on a port. Note that the bits that are returned are directly from the UART, no interpretation or state stabilization is performed. This means that the values returned may no longer reflect reality since the signals may have changed state.

The one concession to stability is that for a more accurate view of the registers, interrupts are turned off while both registers are being read.