comp.lang.ada
 help / color / mirror / Atom feed
* USB I/O
@ 2002-10-27 13:13 FranciKait
  2002-10-28 12:45 ` Marin David Condic
  0 siblings, 1 reply; 4+ messages in thread
From: FranciKait @ 2002-10-27 13:13 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: USB I/O
  2002-10-27 13:13 USB I/O FranciKait
@ 2002-10-28 12:45 ` Marin David Condic
  2003-01-08 21:05   ` Rupert Pigott
  0 siblings, 1 reply; 4+ messages in thread
From: Marin David Condic @ 2002-10-28 12:45 UTC (permalink / raw)


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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: USB I/O
  2002-10-28 12:45 ` Marin David Condic
@ 2003-01-08 21:05   ` Rupert Pigott
  2003-01-09 16:50     ` OT : mail-server hiccup ? (WasRe: USB I/O) sk
  0 siblings, 1 reply; 4+ messages in thread
From: Rupert Pigott @ 2003-01-08 21:05 UTC (permalink / raw)


"Marin David Condic" <mcondic.auntie.spam@acm.org> wrote in message
news:apjbi9$hk0$1@slb7.atl.mindspring.net...
> 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

I use OpenBSD, which inherits NetBSD's USB API... www.netbsd.org. From
what I can gather having a brief skim of the man page you ticklet USB via
ioctls
on a /dev/usb... file.

[SNIP]

> 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

I'd say the first place to look is at the USB specs at : www.usb.org. The
specs appear to be free for download at http://www.usb.org/developers/docs/

Even after all that you might well need to resort to extracting information
from
the manufacturer too. The first place I'd look would be at the 'open source'
drivers & applications that talk to USB, so any BSD UNIX or Linux site
would be a good starting place. I'm not sure which site I can recommend for
that kind of info for Linux, but www.netbsd.org, www.freebsd.org and
www.openbsd.org work for the BSD ones. :)

Cheers,
Rupert





^ permalink raw reply	[flat|nested] 4+ messages in thread

* OT : mail-server hiccup ? (WasRe: USB I/O)
  2003-01-08 21:05   ` Rupert Pigott
@ 2003-01-09 16:50     ` sk
  0 siblings, 0 replies; 4+ messages in thread
From: sk @ 2003-01-09 16:50 UTC (permalink / raw)


Hi,

The message that this message is threaded to is the only
one I have received thru the cla mailing list and there
are 3 on Google.

Has the cla mail server hiccupped again ? Or is my end
(my ISP) losing things ?


-- 
--
-- Merge vertically for real address
--
------------------------------------
-- s n p @ t . o
--  k i e k c c m
------------------------------------




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-09 16:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-27 13:13 USB I/O FranciKait
2002-10-28 12:45 ` Marin David Condic
2003-01-08 21:05   ` Rupert Pigott
2003-01-09 16:50     ` OT : mail-server hiccup ? (WasRe: USB I/O) sk

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