Description-
Returns true if a ring signal was detected since the last call to this function.
Syntax-
stat = IsRing(port);
On Entry-
int port;
Port previously opened with OpenComPort().
On Exit-
int stat;
0 If ring was not detected.
1 If ring was detected.
See Also-
IsBreak()
IsCarrierDetect()
IsCts()
IsDsr()
IsFramingError()
IsInputOverrun()
IsOverrunError()
IsParityError()
IsRing()
Example-
#include "comm.h"
int port=0; int stat;
if ((stat = IsRing(port)) == 1) { printf("Ring occurred\n"); }