From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f5a759fa74d31a00 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-28 12:12:01 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.32.206.55!newsfeed.berkeley.edu!ucberkeley!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Serial Programming on the AIX Date: 28 Mar 2001 14:59:05 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <99rh05$4ut$1@dt088n7d.san.rr.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 985810414 1660 128.183.220.71 (28 Mar 2001 20:13:34 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 28 Mar 2001 20:13:34 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: supernews.google.com comp.lang.ada:6169 Date: 2001-03-28T20:13:34+00:00 List-Id: jmanghan@dt088n7d.san.rr.com (Jeetendra Manghani) writes: > 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? "tcsestattr" is actually provided by the operating system (AIX). The C compiler vendor was kind enough to provide a binding of it to C. Ask your Ada vendor to do the same, or write your own. If you have trouble writing your own binding, post your best effort here, and maybe we can help. > 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? Ask your Ada vendor about non-blocking reads on files, or about setting buffering parameters on files. > > > Thanks, Jee Manghani -- -- Stephe