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.3 required=5.0 tests=BAYES_00,INVALID_MSGID 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: Darel Cullen Subject: Re: Reading data from the serial port using ADA on an Unix platform Date: 1996/08/20 Message-ID: #1/1 X-Deja-AN: 175641173 distribution: world x-nntp-posting-host: djcull.demon.co.uk references: organization: my bedroom mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-08-20T00:00:00+00:00 List-Id: 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