madwizard-thomas / winusbnet

WinUSB .NET wrapper library
Other
142 stars 64 forks source link

Alternate Setting is always zero #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
GetInterfaceInfo method uses WinUsb_QueryInterfaceSettings function with zeroed 
AlternateInterfaceNumber. By the USB standard each interface can have alternate 
one, so zeroing this setting is wrong. For example, my device using Atmel SAM3x 
microcontroller and USB Device Vendor Class implementation by Atmel Software 
Foundation. In their implementation they using interface 0 alternate setting 0 
for ep0 control transfer only, and user's BULK, ISOCHRONOUS and INTERRUPT 
endpoints - in interface 0 alternate setting 1.

I am very new in C#, so I don't understand for now how to add support for 
alternate setting without major modification of library interface. It is easy 
just to put 1 instead of 0, but it is not flexible enough.

Original issue reported on code.google.com by shotin...@gmail.com on 11 Aug 2014 at 6:20

GoogleCodeExporter commented 9 years ago
Currently the library does not support alternate interface settings. 
Unfortunately I don't have the time or test equipment to support this, sorry :(

Original comment by madwizar...@gmail.com on 11 Sep 2014 at 10:06