COMM-DRV/Lib: IsCts() Returns true if CTS signal high

Description-

Returns true if CTS signal is high.

Syntax-

stat = IsCts(port);

On Entry-

int port;

Port previously opened with InitializePort() or OpenComPort().

On Exit-

int stat;

0 If CTS signal is low.

1 If CTS 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 = IsCts(port)) == 1)
    {
    printf("CTS is present\n");
    }