/*
*
* Test suite program
*/
#include <stdio.h>
#include "usb.h"
void
{
int i;
if (size) {
printf("data dump:");
for (i = 0; i < size; i++) {
if (i % 16 == 0) {
printf("\n%08x ", i);
}
}
printf("\n");
}
}
{
printf(" Endpoint descriptor:\n");
}
{
int i;
printf(" Interface descriptor:\n");
for (i = 0; i < interface->bNumEndpoints; i++)
}
{
int i;
for (i = 0; i < interface->num_altsetting; i++)
printf("\n");
}
{
int i;
printf(" Configuration descriptor:\n");
for (i = 0; i < config->bNumInterfaces; i++)
printf("\n");
}
{
printf(" Device descriptor:\n");
printf("\n");
}
int main(void)
{
usb_init();
int i, ret;
if (udev) {
if (ret > 0)
else
}
if (ret > 0)
else
printf("- Unable to fetch product string\n");
}
if (ret > 0)
else
printf("- Unable to fetch serial number string\n");
}
}
printf(" Couldn't retrieve descriptors\n");
continue;
}
}
}
}
return 0;
}