comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <mcondic.auntie.spam@acm.org>
Subject: Re: USB I/O
Date: Mon, 28 Oct 2002 07:45:40 -0500
Date: 2002-10-28T12:46:01+00:00	[thread overview]
Message-ID: <apjbi9$hk0$1@slb7.atl.mindspring.net> (raw)
In-Reply-To: 20021027081311.15858.00000633@mb-ct.aol.com

I have not done this yet. (Day ain't over, yet!) However, I'd suggest this:
Whatever is happening at either end of the USB port, you've *probably* got
some kind of OS calls to deal with it. Either it looks like a file (in which
case, one of Ada's I/O packages - probably Streams - is the way to go) or it
looks like something completely different (in which case, there's got to be
some custom OS services to handle it and you just connect to them using
Ada's ability to interface to other languages.)

If you don't have an OS and you're trying to write low level driver code,
then your first stop is the hardware reference manual for the device you're
looking at. Somewhere between that and the hardware reference for the
machine you're using, you should be able to figure out how to write code for
the device.

If you need more help, you ought to post more details. Explain what your
target hardware and OS look like and identify the particular compiler you're
working with. You might explain what you're trying to do with the USB and
what overall approaches you are investigating (OS calls, file I/O, bare
machine, etc...)

MDC
--
======================================================================
Marin David Condic
I work for: http://www.belcan.com/
My project is: http://www.jast.mil/

Send Replies To: m c o n d i c @ a c m . o r g

    "I'd trade it all for just a little more"
        --  Charles Montgomery Burns, [4F10]
======================================================================
FranciKait <francikait@aol.comnojunk> wrote in message
news:20021027081311.15858.00000633@mb-ct.aol.com...
> Any one out there seen or done anything to connect USB ports using Ada?
>
> I haven't a clue where to even start.  I suspect in the Win32 API
somewhere,
> but haven't found much.
>
> Fran Renard
> Vacaville, CA





  reply	other threads:[~2002-10-28 12:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-27 13:13 USB I/O FranciKait
2002-10-28 12:45 ` Marin David Condic [this message]
2003-01-08 21:05   ` Rupert Pigott
2003-01-09 16:50     ` OT : mail-server hiccup ? (WasRe: USB I/O) sk
replies disabled

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