How to sense DCD on serial port?

[ Available lists | Index of freebsd-hackers | Month of Oct 2000 | Week of 19 Oct 2000 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Alexander Maret <maret@atrada.net>
Date
19 Oct 2000 05:30:52
Subject
How to sense DCD on serial port?
Message-ID
58A002A02C5ED311812E0050044517F00D2608@erlangen01.atrada.de


[ Hide this part ]
Hello,

I just assembled a mini IR receiver for the serial Port.
This device shows the IR-code by pulling DCD up or down.
As there is no software for FreeBSD supporting IR I would
like to have a try and code it myself. Unfortunately those
Pulses sent by the IR device sometimes only last a few
milliseconds. Now my question:

How can I sense the state of the DCD line that quick? I
can meassure the overal time with gettimeofday() but how
can I sense DCD?

Alex



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Elapsed time: 0.068 seconds