User manual

SCM3712 REFERENCE MANUAL 59
8.6. Escape IOCTL’s supported in SCM3712
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 LPVOIDlpOutBuffer,// Response buffer
__in DWORD nOutBufferSize,// Response buffer size
__out LPDWORDlpBytesReturned// Total number of BYTES returned from the driver.
)
8.6.1. READER_CNTLESS_GET_ATS_ATQB
8.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 SCM3712.
8.6.1.2. Input buffer
Byte # Value Description
B0
0x93
Escape command code
8.6.1.3. Output buffer
The output buffer is
Byte #
Output buffer
ATS or ATQB