[Pcsclite-cvs-commit] CVS Drivers/ccid/src

CVS User rousseau ludovic.rousseau@free.fr
Thu, 16 Jun 2005 13:52:17 +0000


Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv26299

Modified Files:
	parse.c 
Log Message:
parse dwSynchProtocols


--- /cvsroot/pcsclite/Drivers/ccid/src/parse.c	2005/05/02 09:55:31	1.29
+++ /cvsroot/pcsclite/Drivers/ccid/src/parse.c	2005/06/16 13:52:17	1.30
@@ -18,7 +18,7 @@
 */
 
 /*
- * $Id: parse.c,v 1.29 2005/05/02 09:55:31 rousseau Exp $
+ * $Id: parse.c,v 1.30 2005/06/16 13:52:17 rousseau Exp $
  */
 
 #include <stdio.h>
@@ -267,6 +267,12 @@
 	}
 	printf("  dwMaxIFSD: %d\n", dw2i(extra, 28));
 	printf("  dwSynchProtocols: 0x%08X\n", dw2i(extra, 32));
+	if (extra[35] & 0x01)
+			printf("   2-wire protocol\n");
+	if (extra[35] & 0x02)
+			printf("   3-wire protocol\n");
+	if (extra[35] & 0x04)
+			printf("   I2C protocol\n");
 
 	printf("  dwMechanical: 0x%08X\n", dw2i(extra, 36));
 	if (extra[36] == 0)