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