CLOUD
47
X
0
F
R
EFERENCE
M
ANUAL
92
7.2.
Annex B
– Sample code using escape commands
File Name: CLOUD 47x0 F Escape.h
#ifndef
_CLOUD_47x0F_ESCAPE_H_
#define
_CLOUD_47x0F_ESCAPE_H_
#ifdef
__cplusplus
extern
"C"
{
#endif
# pragmapack
(1)
typedefstruct
{
BYTE byMajorVersion;
BYTE byMinorVersion;
BYTE bySupportedModes;
WORD wSupportedProtocols;
WORD winputDevice;
BYTE byPersonality;
BYTE byMaxSlots;
BYTE bySerialNoLength;
BYTE abySerialNumber [28];
} ReaderInfoExtended;
# pragmapack
()
#define
IOCTL_CCID_ESCAPE
SCARD_CTL_CODE (0xDAC)
#define
READER_SET_MODE
0x01
#define
READER_GET_MODE
0x02
#define
READER_GETIFDTYPE
0x12
#define
READER_LED_CONTROL
0x19
#define
READER_LED_CONTROL_BY_FW
0xB2
#define
READER_GETINFO_EXTENDED
0x1E
#define
READER_RDWR_USR_AREA
0xF0
#define
CONTACT_GET_SET_POWERUPSEQUENCE 0x04
#define
CONTACT_EMV_LOOPBACK
0x05
#define
CONTACT_EMV_SINGLEMODE
0x06
#define
CONTACT_EMV_TIMERMODE
0x07
#define
CONTACT_APDU_TRANSFER
0x08
#define
CONTACT_CONTROL_PPS
0x0F
#define
CONTACT_EXCHANGE_RAW
0x10
#define
CONTACT_GET_SET_CLK_FREQUENCY
0x1F
#define
CONTACT_GET_SET_ETU
0x80
#define
CONTACT_GET_SET_WAITTIME
0x81
#define
CONTACT_GET_SET_GUARDTIME
0x82
#define
CONTACT_GET_SET_MCARD_TIMEOUT
0x85
#define
CONTACT_CONTROL_ATR_VALIDATION
0x88
#define
CNTLESS_GETCARDINFO
0x11
#define
CNTLESS_GET_ATS_ATQB
0x93
#define
CNTLESS_CONTROL_PPS
0x99
#define
CNTLESS_RF_SWITCH
0x96
#define
CNTLESS_SWITCH_RF_ON_OFF
0x9C
#define
CNTLESS_GET_BAUDRATE
0x9E
#define
CNTLESS_CONTROL_RETRIES
0xA7
#define
CNTLESS_CONTROL_POLLING
0xAC
#define
CNTLESS_GET_CARD_DETAILS
0xDA
#define
CNTLESS_SET_CONFIG_PARAMS
0xE1
#define
CNTLESS_IS_COLLISION_DETECTED
0xE4
#define
CNTLESS_FELICA_PASS_THRU
0xF3
#define
CNTLESS_P2P_SWITCH_MODES
0xE9
#define
CNTLESS_P2P_TARGET_RECEIVE
0xEA
#define
CNTLESS_P2P_TARGET_SEND
0xEB
#define
CNTLESS_P2P_INITIATOR_TRANSCEIVE 0xE7
#define
CNTLESS_NFC_SINGLESHOT
0xEC
#define
CNTLESS_NFC_LOOPBACK
0xED
#ifdef
__cplusplus
}
#endif
#endif