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

56
int fw_MFPlusL3_Decrement(int ihic, unsigned int blkAddr,unsigned long value);
Description:
Reduce the value of the value block for the three-level card(consume)
Parameters:
ihic: handle of device
blkAddr: the block NO.
value: the reduced value
Example:
int st;
st= fw_MFPlusL3_Decrement(icdev,4, 5);
2.12 CPU(SAM)Functions
__int16 fw_cpureset (HANDLE ICDev, unsigned char *rlen, unsigned char *rbuff)
Description
Power-on reset function of CPU Card, it will automatically judge card protocol
after reset.
Parameters
ICDev: Handle of Reader Device
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)