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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3d9114fceeba0630 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-28 04:46:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: USB I/O Date: Mon, 28 Oct 2002 07:45:40 -0500 Organization: MindSpring Enterprises Message-ID: References: <20021027081311.15858.00000633@mb-ct.aol.com> NNTP-Posting-Host: d1.56.bb.f6 X-Server-Date: 28 Oct 2002 12:46:01 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Xref: archiver1.google.com comp.lang.ada:30185 Date: 2002-10-28T12:46:01+00:00 List-Id: 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 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