On Fri, 29 Oct 1999, Thomas Thissen wrote:
>
> I have a simple Problem:
> 
> how do I set the DTR pin to High or Low in a C program?

You'll need to make this code safe, but:

int fd;
unsigned long i;

(...)
/* Device already open */
(...)

i = TIOCM_DTR;
/* Set DTR */
ioctl(fd, TIOCMBIS, &i);
/* Reset DTR */
ioctl(fd, TIOCMBIC, &i);

HTH.

Regards,
Ivan


-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [EMAIL PROTECTED]

Reply via email to