[Pcsclite-cvs-commit] r5725 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon May 9 09:36:46 UTC 2011
Author: rousseau
Date: Mon May 9 09:36:40 2011
New Revision: 5725
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5725
Log:
Add support of TLV Properties wLcdMaxCharacters and wLcdMaxLines
They just duplicate wLcdLayout
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=5725&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Mon May 9 09:36:40 2011
@@ -1459,6 +1459,24 @@
RxBuffer[p++] = tmp & 0xFF; /* value in little endian order */
RxBuffer[p++] = (tmp >> 8) & 0xFF;
+ /* only if the reader has a display */
+ if (ccid_descriptor -> wLcdLayout)
+ {
+ /* wLcdMaxCharacters */
+ RxBuffer[p++] = PCSCv2_PART10_PROPERTY_wLcdMaxCharacters; /* tag */
+ RxBuffer[p++] = 2; /* length */
+ tmp = ccid_descriptor -> wLcdLayout & 0xFF;
+ RxBuffer[p++] = tmp & 0xFF; /* value in little endian order */
+ RxBuffer[p++] = (tmp >> 8) & 0xFF;
+
+ /* wLcdMaxLines */
+ RxBuffer[p++] = PCSCv2_PART10_PROPERTY_wLcdMaxLines; /* tag */
+ RxBuffer[p++] = 2; /* length */
+ tmp = ccid_descriptor -> wLcdLayout >> 8;
+ RxBuffer[p++] = tmp & 0xFF; /* value in little endian order */
+ RxBuffer[p++] = (tmp >> 8) & 0xFF;
+ }
+
/* bTimeOut2 */
RxBuffer[p++] = PCSCv2_PART10_PROPERTY_bTimeOut2;
RxBuffer[p++] = 1; /* length */
More information about the Pcsclite-cvs-commit
mailing list