Getting class descriptor from USB Host

Hello, I guess this must be easy…

When working with USB Client, I can supply USBConfiguration.ClassDescriptor for the USB interfaces.

Now if I work with USB Host, how do I read such class descriptor for the interface of connected device?

Thanks!
Jan

Welcome to the forum…

(I’m not worthy !! It’s Jan !)

I don’t really know USB Host, but
http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/html/f0040fae-3d45-baf9-7e0d-6eb0a2c251ab.htm is the USBH_Descriptors Configuration Class doco, and http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/html/3755cd6b-80c8-c4f2-2db8-64341afbec0c.htm for general USB Host APIs.

(from http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/Index.html)

But I always go back to the USB Discovery example code, http://code.tinyclr.com/project/164/usb-discovery-helper/ and perhaps that’ll actually show you what you need?

Hello Brett and thank you for your quick reply and a warm welcome! :slight_smile:

I have been playing with the USB host for a while and have not seen anything that would suggest to provide the interface’s class descriptor. The USB Host documentation is not really helpful, is it… anyway you made me went through this again and the auxiliary descriptors seem to be structurally similar to the class descriptors, so I will check whether the data are in.

Thanks!
Jan

Welcome Jan :slight_smile: It’s great to see more .NET MF team members on this forum!

Welcome to our community :slight_smile: Jan

Okay I have managed to get some device with a class descriptor and for those who are interested I confirm that the auxiliary descriptors do contain them as suspected. :slight_smile:

Thanks for your support!
Jan