Niels Hald Pedersen wrote:

> Now I have a need for toggling the RTS line of the serial port, in order
> to activate a RS422/485 transmitter, either on board with such hardware,
> or on an attached donglelike gadget.
> 
> The question is thus: how do I set/clear the RTS line from the C surface
> ??

>From looking at serial.c, my guess would be to use

        ioctl(handle, TIOCMBIS, TIOCM_RTS)

to set it and

        ioctl(handle, TIOCMBIC, TIOCM_RTS)

to clear it.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to