Messages in this thread | | | Subject | Re: modifying line state manually on ttyS | From | Sergei Organov <> | Date | 07 Apr 2003 19:34:25 +0400 |
| |
Michael Buesch <freesoftwaredeveloper@web.de> writes: > Hi. > > I have asked in many other mailing-lists, but I got no good > solution for my problem, so I try to ask here, although it may > not be the exaclty correct list for it. > > I have developed my own device, that is connected to ttyS0. > To talk to my device, I need to set the state of the TxD line > manually to either 0 or 1 (+12v or -12v). What I try to say is, > I don't want to write a whole byte to the port, but only one single > bit, that then stays persistent on the line, until I reset its state. > Better sayed, I want to handle TxD line, like it's possible for > DTR-line for example.
Do ioctl(fd, TIOCSBRK, 0) / ioctl(fd, TIOCCBRK, 0) help?
-- Sergei.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |