Document Version 1.2
Last revised on
2017-09-26
Page 86 of 92
Reference Manual for uTrust 4701F and uTrust 4711F Readers
7.2.
Annex B – Sample code using escape commands
File Name: uTrust 47xx F Escape.h
#ifndef _uTrust_47xxF_ESCAPE_H_
#define _uTrust_47xxF_ESCAPE_H_
#ifdef __cplusplus
extern"C" {
#endif
#pragma pack(1)
typedef struct
{
BYTE byMajorVersion;
BYTE byMinorVersion;
BYTE bySupportedModes;
WORD wSupportedProtocols;
WORD winputDevice;
BYTE byPersonality;
BYTE byMaxSlots;
BYTE bySerialNoLength;
BYTE abySerialNumber [28];
} ReaderInfoExtended;
#pragma pack()
#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