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

CVS User rousseau ludovic.rousseau@free.fr
Tue, 26 Apr 2005 13:44:08 +0000


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

Modified Files:
	ccid_serial.c 
Log Message:
OpenSerialByName(): the reader does not support the Get Data Rates CCID
function so the list of supported data rates is hard coded.


--- /cvsroot/pcsclite/Drivers/ccid/src/ccid_serial.c	2005/04/26 12:38:25	1.34
+++ /cvsroot/pcsclite/Drivers/ccid/src/ccid_serial.c	2005/04/26 13:44:08	1.35
@@ -20,7 +20,7 @@
  */
 
 /*
- * $Id: ccid_serial.c,v 1.34 2005/04/26 12:38:25 rousseau Exp $
+ * $Id: ccid_serial.c,v 1.35 2005/04/26 13:44:08 rousseau Exp $
  */
 
 #include <stdio.h>
@@ -135,6 +135,50 @@
 /* The _serialDevice structure must be defined before including ccid_serial.h */
 #include "ccid_serial.h"
 
+int SerialDataRates[] = {
+		10753,
+		14337,
+		15625,
+		17204,
+		20833,
+		21505,
+		23438,
+		25806,
+		28674,
+		31250,
+		32258,
+		34409,
+		39063,
+		41667,
+		43011,
+		46875,
+		52083,
+		53763,
+		57348,
+		62500,
+		64516,
+		68817,
+		71685,
+		78125,
+		83333,
+		86022,
+		93750,
+		104667,
+		107527,
+		114695,
+		125000,
+		129032,
+		143369,
+		156250,
+		166667,
+		172043,
+		215054,
+		229391,
+		250000,
+		344086,
+		0
+	};
+
 /* no need to initialize to 0 since it is static */
 static _serialDevice serialDevice[CCID_DRIVER_MAX_READERS];
 
@@ -563,6 +607,7 @@
 	serialDevice[reader].ccid.dwMaxDataRate = 344086;
 	serialDevice[reader].ccid.bMaxSlotIndex = 0;
 	serialDevice[reader].ccid.bCurrentSlotIndex = 0;
+	serialDevice[reader].ccid.arrayOfSupportedDataRates = SerialDataRates;
 
 	serialDevice[reader].buffer_offset = 0;
 	serialDevice[reader].buffer_offset_last = 0;