Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Oct 2000 14:46:25 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Alexander Maret <maret@atrada.net>
Cc:        "'freebsd-hackers@freebsd.org'" <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: Accessing the tty structure of an opened device 
Message-ID:  <10391.972650785@critter>
In-Reply-To: Your message of "Fri, 27 Oct 2000 14:40:38 %2B0200." <58A002A02C5ED311812E0050044517F00D2611@erlangen01.atrada.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <58A002A02C5ED311812E0050044517F00D2611@erlangen01.atrada.de>, 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
phk@FreeBSD.ORG         | 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10391.972650785>