COMM-DRV/Lib: DtrOn() Turns DTR on

Description-

Turns the DTR signal on.

Syntax-

stat = DtrOn(port);

On Entry-

int port;

Port previously opened with OpenComPort().

On Exit-

int stat;

-1 If port was not initialized.

See Also-

DtrOff()
RtsOff()
RtsOn()

Example-

#include

int port=0;
int stat;

if ((stat = DtrOn(port)) == -1)
{
printf(“Port not initialized\n”);

/* Take remedial action */
}