On Sunday 04 March 2012 15:32:27 Mike Frysinger wrote:
> On Sunday 04 March 2012 04:05:55 Németh Márton wrote:
> > Mike Frysinger wrote:
> > > On Sunday 11 December 2011 17:42:26 Németh Márton wrote:
> > >> Add "cable list" command.
> > >> 
> > >> This is more or less a draft to be reviewed.
> > >> 
> > >> I'm not really sure what types shall be selected for parameters of
> > >> FT_*() functions.
> > > 
> > > this looks like it still creates a parallel API to the existing probe
> > > code. the usb cable drivers all declare the expected VID/PID for their
> > > cables, so it should be a simple matter of walking all the usb buses
> > > and comparing their VID/PID combos to the database of usb cable
> > > drivers that are registered.
> > 
> > Do you have any example in the UrJTAG source code where you already walk
> > through all the USB buses looking for VID/PID values? How can you do that
> > in a platform-independent way?
> 
> tap/usbconn/libusb.c walks all devices on all buses and checks their
> vid/pid

i've improved things so now you don't have to worry about the libusb-0.1 API.  
you can use the libusb-1.0 API only -- call libusb_init and 
libusb_get_device_list and libusb_free_device_list.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to