On 5/11/06, psych2009 <> wrote:
> After browsing these boards I believe that I have gotten the USB ports
> working on my board, TS-7260. However I am not sure how to comunicate
> with the ports using C, if anyone could provide some help and example
> code to aid me in this I would appreciate it.
You'll have to be more specific as to what devices you are going to be
connecting to the USB host controller.
For info on how to use the userspace USB library "libusb" you can
check it out here:
http://libusb.sourceforge.net/doc/index.html
I have used the FT2232 from these guys http://www.ftdichip.com/
before, and someone created a library, libftdi, that uses libusb. You
could look at the source for libftdi to figure out how to use libusb
as well.
If you are going to be doing just basic usb->serial stuff, you could
try using the usbserial kernel module. I use that with a touchscreen
LCD, ezLCD004, in a project I'm working on right now.
USB is a tricky beast to get a hold of. IIRC the USB spec is >800
pages, so you can see it's not trivial like some of the other serial
protocols.
-Mark
------------------------ Yahoo! Groups Sponsor --------------------~-->
You can search right from your browser? It's easy and it's free. See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|