User's Manual
Table Of Contents
- Legal information
- Introduction to the manual
- General information about SDI011
- SDI011 characteristics
- Software modules
- Commands description
- Generic APDU
- Set of APDU for contactless storage user tokens
- Set of APDU for ISO/IEC14443-4 user tokens
- Set of APDU defined by SCM Microsystems
- Escape commands for the contactless interface
- Sending escape commands to SDI011
- Escape command codes
- READER_GETCARDINFO
- READER_LED_CONTROL_BY_FW
- READER_LEDCONTROL
- READER_CNTLESS_GET_MFRC_REV
- READER_CNTLESS_GET_ATS_ATQB
- READER_CNTLESS_GET_TYPE
- READER_CNTLESS_SET_TYPE
- READER_CNTLESS_RF_SWITCH
- READER_CNTLESS_RAW_CFG
- READER_CNTLESS_RAW_XMIT_EX
- READER_ CNTLESS_DISABLE_PPS
- READER_SWITCH_RF_ON_OFF
- READER_CNTLESS_848KBPS
- READER_CNTLESS_BAUDRATE
- READER_CNTLESS_FORCE_BAUDRATE_PCSC_REV2
- Escape commands for the contact interface
- Annexes
SDI011 REFERENCE MANUAL 62
7.2. Annex B – Sample code using escape commands
through Escape IOCTL
File Name : T_hbr.H
#ifdef __cplusplus
extern "C" {
#endif
#define IOCTL_CCID_ESCAPE SCARD_CTL_CODE (0xDAC)
#define CCID_GET_848KBPS_STATUS 0xFF9D
#define CCID_SET_848KBPS_ON 0x019D
#define CCID_SET_848KBPS_OFF 0x009D
#define MINTIMEOUT 300
#ifdef __cplusplus
}
#endif
File Name : T_hbr.CPP
#include <windows.h>
#include <winbase.h>
#include <stdio.h>
#include <conio.h>
#include "winscard.h"
#include "winerror.h"
#include "T_hbr.H"
VOID main(VOID)
{
SCARDCONTEXT ContextHandle;
SCARDHANDLE CardHandle;
BYTE OutByte;
WORD InWord,i;
DWORD ActiveProtocol; /* ICC protocol */
ULONG InBufLen,ResLen;
ULONG ret;