Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2004 19:39:51 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Userland access to modem control lines?
Message-ID:  <200411171940.04217.doconnor@gsoft.com.au>
In-Reply-To: <062F15EA-386B-11D9-BD35-000D93C47836@xcllnt.net>
References:  <200411171719.16370.doconnor@gsoft.com.au> <062F15EA-386B-11D9-BD35-000D93C47836@xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1415930.EJY1Kv9Pd3
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Wed, 17 Nov 2004 18:03, Marcel Moolenaar wrote:
> On Nov 16, 2004, at 10:48 PM, Daniel O'Connor wrote:
> > Hi,
> > Does anyone know of a way to manipulate the modem control lines from
> > userland?
>
> See <sys/ttycom.h>, in particular the following ioctls:

Unk thanks.
Dunce cap on :)

> #define TIOCMSET        _IOW('t', 109, int)     /* set all modem bits */
> #define TIOCMBIS        _IOW('t', 108, int)     /* bis modem bits */
> #define TIOCMBIC        _IOW('t', 107, int)     /* bic modem bits */
> #define TIOCMGET        _IOR('t', 106, int)     /* get all modem bits */
> #define         TIOCM_LE        0001            /* line enable */
> #define         TIOCM_DTR       0002            /* data terminal ready
> */
> #define         TIOCM_RTS       0004            /* request to send */
> #define         TIOCM_ST        0010            /* secondary transmit */
> #define         TIOCM_SR        0020            /* secondary receive */
> #define         TIOCM_CTS       0040            /* clear to send */
> #define         TIOCM_DCD       0100            /* data carrier detect
> */
> #define         TIOCM_RI        0200            /* ring indicate */
> #define         TIOCM_DSR       0400            /* data set ready */
> #define         TIOCM_CD        TIOCM_DCD
> #define         TIOCM_CAR       TIOCM_DCD
> #define         TIOCM_RNG       TIOCM_RI

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--nextPart1415930.EJY1Kv9Pd3
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQBBmxVs5ZPcIHs/zowRAjzoAJwK8tlVTq/1WvX7CRL60BoHRxx2wgCfZZly
JrxYM4O9eKhZuvV3vVXd6eA=
=RUkN
-----END PGP SIGNATURE-----

--nextPart1415930.EJY1Kv9Pd3--



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