[Pcsclite-cvs-commit] r2389 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at alioth.debian.org
Thu Feb 8 15:13:48 CET 2007
Author: rousseau
Date: 2007-02-08 15:13:47 +0100 (Thu, 08 Feb 2007)
New Revision: 2389
Modified:
trunk/Drivers/ccid/src/parse.c
Log:
parse bNumEndpoints field
Modified: trunk/Drivers/ccid/src/parse.c
===================================================================
--- trunk/Drivers/ccid/src/parse.c 2007-02-05 20:29:59 UTC (rev 2388)
+++ trunk/Drivers/ccid/src/parse.c 2007-02-08 14:13:47 UTC (rev 2389)
@@ -166,6 +166,23 @@
printf(" bAlternateSetting: %d\n", usb_interface->bAlternateSetting);
printf(" bNumEndpoints: %d\n", usb_interface->bNumEndpoints);
+ switch (usb_interface->bNumEndpoints)
+ {
+ case 0:
+ printf(" Control only\n");
+ break;
+ case 1:
+ printf(" Interrupt-IN\n");
+ break;
+ case 2:
+ printf(" bulk-IN and bulk-OUT\n");
+ break;
+ case 3:
+ printf(" bulk-IN, bulk-OUT and Interrupt-IN\n");
+ break;
+ default:
+ printf(" UNKNOWN value\n");
+ }
printf(" bInterfaceClass: 0x%02X", usb_interface->bInterfaceClass);
if (usb_interface->bInterfaceClass == 0x0b)
More information about the Pcsclite-cvs-commit
mailing list