Download SCL3711 - SCM Microsystems

Transcript
SCL3711 REFERENCE MANUAL
6.6.
51
Escape IOCTL’s supported in SCL3711
The reader behavior can be configured with the help of below given IOCTL’s. The ScardControl
method of PC/SC (see http://msdn.microsoft.com/en-us/library/aa379474(VS.85).aspx) should
be used to send those IOCTLs. Code the API as given below.
#define IOCTL_CCID_ESCAPE SCARD_CTL_CODE(3500)
SCardControl (
__in SCARDHANDLE hCard, // Handle obtained through ScardConnect
__in DWORD dwControlCode, // Should be set to IOCTL_CCID_ESCAPE
__in
LPCVOID lpInBuffer, // First BYTE contains IOCTL code followed by
arguments if any
__in DWORD nInBufferSize, // Total input buffer length
__out LPVOID lpOutBuffer, // Response buffer
__in DWORD nOutBufferSize, // Response buffer size
__out LPDWORD lpBytesReturned // Total number of BYTES returned from the
driver.
)
6.6.1. READER_CNTLESS_GET_ATS_ATQB
6.6.1.1.
Description
This escape command can be used to retrieve the ATS bytes of the type A or the ATQB bytes
of the type B card present in front of the SCL3711.
6.6.1.2.
Input buffer
Byte #
Value
Description
B0
0x93
Escape command code
6.6.1.3.
Output buffer
The output buffer is
Byte #
Output buffer
…
ATS or ATQB