Go Down

Topic: Getting second configuration descriptor of usb device (Read 884 times) previous topic - next topic


Nov 16, 2013, 12:09 pm Last Edit: Nov 28, 2013, 07:40 am by vijaypatil14 Reason: 1
My usb device has total two configuration descriptor.
After checking vid and pid of usb device i am parsing configuration descriptor using ConfigDescParser method but by default it is getting first configuration  descriptor.
How to get second configuration descriptor and parse it.
I am using Arduin 1.5.4 USBHost Library

if(((USB_DEVICE_DESCRIPTOR*)buf)->idVendor == VID &&

      (((USB_DEVICE_DESCRIPTOR*)buf)->idProduct == PID )){

        for (uint32_t i = 0; i < num_of_conf; ++i)
      ConfigDescParser<0, 0, 0, 0> confDescrParser(this);
      rcode = pUsb->getConfDescr(bAddress, 0, i, &confDescrParser);

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131