Description-
Sends a break signal for a specific duration.
Syntax-
stat = SendBreak(port,timeval);
On Entry-
int port;
Port previously opened with InitializePort() or OpenComPort().
int timeval;
Length of time in timer tics to enable the break signal. The resolution of the timer tic is set by the function CdrvSetTimerResolution().
On Exit-
int stat;
0 If break sent.
else
-1 If port not initialized.
See Also-
DtrOff()
DtrOn()
RtsOff()
RtsOn()
Example-
#include "comm.h"
int port=0; int stat;
if ((stat = SendBreak(port,20)) != 0) { printf("Port not initialized\n");
/* Take remedial action */ }