User Manual
Table Of Contents
- E7 IC Card Reader Introduction
- 1.1 Overview
- 1.2 Features
- 1.3 Device Interface
- 1.4 Peader Packing List
- 1.5 Software
- 1.6 Reader Type Description
- 1.7 Function Instruction
- 1.8 API Function List
- Common Functions
- Device Function
- Keyboard Specific Functions
- S50 card functions
- S70 card specific function
- Ultralight card specific function
- Ultralight-C card specific function
- Mifare pro card specific function
- Mifare PLUS card specific function
- Contactless CPU card(ISO14443) specific function
- Desfire card specific function
- CPU(SAM) card specific functions
- 4442 card-specific functions
- 4428 Card-Specific Functions
- 1.9 Error codes and Meanings
- 2. API Function
- 2.1 Common Functions
- 2.2 Device Functions
- 2.3 Keyboard Special Functions
- 2.4 S50(M1)Functions
- 2.5 S70 card specific function
- 2.6 Ultralight card specific function
- 2.7 Ultralight-Ccard specific function
- 2.8 Mifare Pro card specific function
- 2.9 Contactless CPU card(ISO1443) specific functi
- 2.10 Desfirecard specific function
- 2.11 Mifare Plus card specific function
- 2.12 CPU(SAM)Functions
- 2.13 SLE4442 special Functions
- 2.14 SLE4428 special Functions
- 3.MIFARE ONE Card Structure
- 4.Appendix

58
Rlen: [out] Length of returned reset information
Rbuff: store returned reset information
Return Value
<0 error, its absolute value is error number
=0 successful
Example
unsigned char rlen;
unsigned char DataBuffer [100];
St=fw_cpureset (ICDev, &rlen, DataBuffer);
__int16 fw_setcpu (HANDLE ICDev, unsigned char SAMID)
Description
Set SAM Card deck for operation
Parameters
ICDev: Handle of Reader Device
SAMID: Sequence Number of Deck type, ox0c: Attached deck; 0x0d: SAM1; 0x0e:SAM2;
0x0f:SAM3;
Return Value
<0 error, its absolute value is error number
=0 successful
Example
St=fw_cpureset (ICDev, 0x0c); /* Set to attached deck */
__int16 fw_cpuapdu (HANDLE ICDev, unsigned char slen, unsigned char * sbuff,
unsigned char *rlen, unsigned char * rbuff)
Description
Information transfer between CPU Card and APDU(Application Protocol Data Unit),
This function encapsulates the T = 0 and T = 1 operation
Parameters
ICDev: Handle of Reader Device
slen: Length of information for send
sbuff: Information buffer for send
rlen: Length of information received
rbuff: [out] buff for returned Information
Return Value
<0 error, its absolute value is error number
=0 successful
Example
int st;
unsigned char slen,rlen,senddata[100], recdata[100];
slen=5;
senddata[0]=0x00;senddata[1]=0x84;senddata[2]=0x00;
senddata[3]=0x00;senddata[4]=0x04;
st= fw_cpuapdu ( icdev,slen,senddata,&rlen,recdata)
/*send the random number command to the card*/