
SCL01X
R
EFERENCE
M
ANUAL
71
SCARD_READERSTATE
Reader[1];
// please add the name of the used reader here or use SCardListReaders
// to find the right reader name
char
*ReaderName[] = {"SCM Microsystems Inc. SCL01X USB ContactlessReader 0",
NULL};
/***************************************************************************************
*****************/
ContextHandle = -1;
ret = SCardEstablishContext(SCARD_SCOPE_USER, NULL, NULL, &ContextHandle);
if (ret == SCARD_S_SUCCESS)
{
ret = SCardConnect(
ContextHandle,
ReaderName[0],
SCARD_SHARE_SHARED,
SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1,
&CardHandle,
&ActiveProtocol);
if (ret == SCARD_S_SUCCESS)
{
/* get actual PUPI status: ON/OFF */
InBufLen = 2;
InWord = CCID_GET_PUPI_STATUS;
ret = SCardControl (CardHandle,
IOCTL_CCID_ESCAPE,
&InWord,
InBufLen,
&OutByte,
1,
&ResLen);
printf ("\n Get PUPI status: %lx: %.2x", ret,OutByte);
Reader[0].dwCurrentState = SCARD_STATE_UNAWARE;
Reader[0].dwEventState = SCARD_STATE_UNAWARE;
Reader[0].szReader = ReaderName[0];
Содержание SCL01X
Страница 1: ...SCM Microsystems Reference Manual version 2 0 SCL01X Multiprotocol contactless stationary reader ...
Страница 2: ......
Страница 7: ...7 3 4 Snap on card holder 78 ...
Страница 36: ...SCL01X REFERENCE MANUAL 36 Results into the following memory mapping ...
Страница 75: ...SCL01X REFERENCE MANUAL 75 7 3 Annex C Mechanical drawings 7 3 1 Top casing ...
Страница 76: ...SCL01X REFERENCE MANUAL 76 7 3 2 Bottom casing ...
Страница 77: ...SCL01X REFERENCE MANUAL 77 7 3 3 Cradle ...
Страница 78: ...SCL01X REFERENCE MANUAL 78 7 3 4 Snap on card holder ...