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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME,T_FILL_THIS_FORM_SHORT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,120d3fa8b30138be X-Google-Attributes: gid103376,public From: "Jim Dorman" Subject: Re: Reading data from the serial port using ADA on an Unix platform Date: 1996/08/26 Message-ID: <01bb9337$f51fb1c0$14692bce@ns.znet.com>#1/1 X-Deja-AN: 176519191 references: organization: Active Engineering Technologies newsgroups: comp.lang.ada Date: 1996-08-26T00:00:00+00:00 List-Id: It's not necessary to use any Pragmas to use RS232. IntegrAda and the AdaUser libraries for ActivAda contain an RS232 library. Don't make your job any harder than it needs to be! Use the right tools for the job. Why not stop by the Home of PCAda and check out your toolchest! You can visit us at "http://www.pcada.com." -- Jim Dorman Active Engineering Technologies, Inc. Home of PC ADA Voice: (619) 414-9001 Fax: (619) 414-9192 email: jimd@pcada.com URL: http://www.pcada.com Member of Team Ada! Darel Cullen wrote in article ... > In article , > Quek Chee Kwang writes > >Greetings. > > > >I'm new to ADA and I would like to know how to program in ADA to read data > >(binary & ascii) coming from the serial port (for instance, a modem) on an > >Unix platform. > > > >Thank you very much. > > > >Quek > > > > > > Firstly Investigate your compilers pragma INTERFACE features. what you > will need to do is build up a set of ADA functions and procedures that > are directly bound to the C calls, in unix's case I think ioctl() would > be a good place to start. > basically , ADA has no features with which to read from a serial port, > you'll have to use the C calls and bind them to ADA. > > > -- > Darel Cullen >