Description-
Returns true if DSR signal is high.
Syntax-
stat = IsDsr(port);
On Entry-
int port;
Port previously opened with OpenComPort().
On Exit-
int stat;
0 If DSR signal is low.
1 If DSR signal is high
See Also-
IsBreak()
IsCarrierDetect()
IsCts()
IsDsr()
IsFramingError()
IsInputOverrun()
IsOverrunError()
IsParityError()
IsRing()
Example-
#include “comm.h”
int port=0;
int stat;
if ((stat = IsDsr(port)) == 1)
{
printf(“Dsr is present\n”);
}