I have the following Problem: i have to set the States of RTS/DTR from
MARK(negative Voltage) to SPACE(positive Voltage) independent from each
other.
But on the net I only found a Documentation how to switch the Hardware
Flow Control through the TERMIO structure.
Does ne1 knows how to set the states of RTS and DTR?
MfG,
Mitko Rürup.
Something like...
int Lines;
Lines = TIOCM_RTS /* or TIOCM_DTR */;
if (ioctl(fd, TIOCMBIC, &Lines) < 0) perror("TIOCMBIC TIOCM_RTS");
/* or TIOCMBIS */
man termio, looking at parts relating to TIOCMBIC and TIOCMBIS.
--
Andrew Gabriel
Consultant Software Engineer