From: gisle@apal.ii.uib.no (Gisle S�lensminde)
Subject: Re: [Q] com port function or procedure
Date: 2000/03/20
Date: 2000-03-20T00:00:00+00:00 [thread overview]
Message-ID: <slrn8dcktd.r7l.gisle@apal.ii.uib.no> (raw)
In-Reply-To: jB98S2nk$GA.257@news.thrunet.com
In article <jB98S2nk$GA.257@news.thrunet.com>, Hee wrote:
>Hi, I'm working in Korea.
>
>C language have com port function such as "outportb" and "inportb".
>Do Ada language have any com port function or procedure?
If you search on www.deja.com for questions on com/parallel/serial ports,
you will see that this question has been asked several times before
in this group. You will also find several answers.
Well, C does in fact _not_ have these functions. These functions
probably comes with your operating system, and is not a part of C.
If you move code using these functions to a different OS, your C code
will no longer work.
If you want to use these functions from Ada, you must write an
interface to them. The package standard Ada95 package interfaces.C
and pragma import/export do that.
In addition you must link with the library containing these
functions. How to do that depent on operating system.
The issue of accessing hardware like this is generally dependent
on the operating system. Maybe someone recognize the function
names and can give you a more precise answer.
P.S: shouldn's this one be in the FAQ? Maybe I should try to submit
an answer to the FAQ. (or someone else)
--
--
Gisle S�lensminde ( gisle@ii.uib.no )
ln -s /dev/null ~/.netscape/cookies
prev parent reply other threads:[~2000-03-20 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-21 0:00 [Q] com port function or procedure Hee
2000-03-20 0:00 ` Gautier
2000-03-20 0:00 ` Gisle S�lensminde [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox