Home | History | Annotate | Download | only in examples

Lines Matching refs:interface

23 void print_altsetting(struct usb_interface_descriptor *interface)
27 printf(" bInterfaceNumber: %d\n", interface->bInterfaceNumber);
28 printf(" bAlternateSetting: %d\n", interface->bAlternateSetting);
29 printf(" bNumEndpoints: %d\n", interface->bNumEndpoints);
30 printf(" bInterfaceClass: %d\n", interface->bInterfaceClass);
31 printf(" bInterfaceSubClass: %d\n", interface->bInterfaceSubClass);
32 printf(" bInterfaceProtocol: %d\n", interface->bInterfaceProtocol);
33 printf(" iInterface: %d\n", interface->iInterface);
35 for (i = 0; i < interface->bNumEndpoints; i++)
36 print_endpoint(&interface->endpoint[i]);
39 void print_interface(struct usb_interface *interface)
43 for (i = 0; i < interface->num_altsetting; i++)
44 print_altsetting(&interface->altsetting[i]);
59 print_interface(&config->interface[i]);