[Pcsclite-cvs-commit] r2390 - trunk/Drivers/ccid/src

Ludovic Rousseau rousseau at alioth.debian.org
Thu Feb 8 15:18:56 CET 2007


Author: rousseau
Date: 2007-02-08 15:18:56 +0100 (Thu, 08 Feb 2007)
New Revision: 2390

Modified:
   trunk/Drivers/ccid/src/parse.c
Log:
parse bInterfaceProtocol field


Modified: trunk/Drivers/ccid/src/parse.c
===================================================================
--- trunk/Drivers/ccid/src/parse.c	2007-02-08 14:13:47 UTC (rev 2389)
+++ trunk/Drivers/ccid/src/parse.c	2007-02-08 14:18:56 UTC (rev 2390)
@@ -201,8 +201,20 @@
 		printf("  UNSUPPORTED SubClass\n");
 
 	printf(" bInterfaceProtocol: %d\n", usb_interface->bInterfaceProtocol);
-	if (usb_interface->bInterfaceProtocol)
-		printf("  UNSUPPORTED InterfaceProtocol\n");
+	switch (usb_interface->bInterfaceProtocol)
+	{
+		case 0:
+			printf("  bulk transfer, optional interrupt-IN\n");
+			break;
+		case 1:
+			printf("  ICCD Version A, Control transfers, (no interrupt-IN)\n");
+			break;
+		case 2:
+			printf("  ICCD Version B, Control transfers, (optional interrupt-IN)\n");
+			break;
+		default:
+			printf("  UNSUPPORTED InterfaceProtocol\n");
+	}
 
 	printf(" iInterface: %d\n", usb_interface->iInterface);
 




More information about the Pcsclite-cvs-commit mailing list