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

17
int fw_des(unsigned char *key,unsigned char *sour,unsigned char *dest,__int16 m)
Description
Encrypt or Decrypt with DES algorithm
Parameters
key:secret key
sour:source of data for encrypt/decrypt
dest:out data after encrypt/decrypt
m:model of encrypt/decrypt,encrypt when m=1;decrypt when m=0
Return Value
0 if successful; otherwise, Nonzero.
Example:
unsigned char szKey[17]=”1122334455667788”;
unsigned char szSour[17]=”99AABBCCDDEEFF00”;
unsigned char szDest[17];
st=fw_des(szKey,szSour,szDest,1);// Encrypt
printf(“The result of encrypt:%s”,szDest);
memset(szSour,0,sizeof(szSour));//Clear szSour,and use it to store the
result of decrypt
st = fw_des(szKey,szDest,szSour,0);//Decrypt
printf(“The result of decrypt:%s”,szSour);
Remark
The three parameters ,key,sour,dest,are all a string,the length of which is
16.and the character of the string are hex model.
2.2 Device Functions
int fw_beep(int icdev,unsigned int _Msec);
Description
Make beep
Parameters
icdev:Value of Device Handle.
unsigned int _Msec:Time of beep,(ms)
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
st=fw_beep(icdev,10); /*beep 100 ms*/
int fw_getver(int icdev,unsinged char *buff);
Description
Get version of device
Parameters
icdev:Value of Device Handle.
buff:[out]buff for version number