In message <[EMAIL PROTECTED]>, Alexa
nder Maret writes:
>Hi,
>
>is it possible to access the tty structure of an opened
>device directly?
>
>Background:
>I'm trying to sense the DCD state of a serial port for
>getting the pulses and spaces of a simple IR device.

We have some ioctls which allow you to do that, some of them work.

Look in <sys/ttycom.h>, I belive I have used TIOCMODG() at one 
point in time.

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to