comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Serial Programming on the AIX
Date: Wed, 28 Mar 2001 02:46:44 -0600
Date: 2001-03-28T02:46:44-06:00	[thread overview]
Message-ID: <mxhw6.1209$Uv.597667@newsrump.sjc.telocity.net> (raw)
In-Reply-To: 99rh05$4ut$1@dt088n7d.san.rr.com

These procedures are not part of the language-defined libraries,
but there is an Ada binding to POSIX closely conforming to that
specified in  IEEE STD  1003.5: 1990  and
IEEE STD  1003.5b: 1996.

Source code for this binding is available at:
ftp://ftp.cs.nyu.edu/pub/gnat/3.13p/florist-3.13p.tgz or
ftp://ftp.cs.nyu.edu/pub/gnat/private/old/florist/florist-3.12p-src.tar.gz

The procedures you want are in the package POSIX.Terminal_Functions.

To use these functions you will need to open the serial port with
a procedure from the package POSIX.IO, using the name of the
serial port (/dev/ttyXX ??) -- I don't know the AIX names for serial ports.

The POSIX.IO package has facilities for controlling the blocking
behavior, and other characteristics of the port.

"Jeetendra Manghani" <jmanghan@dt088n7d.san.rr.com> wrote in message
news:99rh05$4ut$1@dt088n7d.san.rr.com...
> Hi there,
>
> I had a couple questions to serial programming in ada:
>
> 1)  Can you set the baud rate?  In C, you can using tcsetattr
> function.  Is there a comparable function in ada?
>
> 2)  I am coming across a problem where I use READ on the port
> but it blocks until the entire buffer is filled up and then
> returns, instead of returning on a CR.  Any ideas?
>
> Thanks,
> Jee Manghani




  reply	other threads:[~2001-03-28  8:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-28  2:09 Serial Programming on the AIX Jeetendra Manghani
2001-03-28  8:46 ` David C. Hoos, Sr. [this message]
2001-03-28 19:59 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox