ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 17 of 52
3.11. ACR120_WriteEEPROM
Writes the internal EEPROM.
High Level API
:
DLLAPI INT16 AC_DECL
ACR120_WriteEEPROM( INT16 hReader,
UINT8 RegNo,
UINT8 EEPROMData);
Parameters
Description
hReader
Handle to the Reader returned by AC_Open()
RegNo
Register number
EEPROMData
EEPROM register’s value to write
Return Value
INT16
Result code. 0 means success.
Table 12
: ACR120_WriteEEPROM Command Description
Low Level Frame Structure:
Command: From PC to Reader (7 bytes)
Command Code
(1 byte)
Command Data Length
(2 byte)
Instruction Code
(1 byte)
Data Length
(1 byte)
Data
(1 byte)
(1 byte)
E0h
04h
0Ch
02h
RegNo
EEPROMData
Response: From Reader to PC (6 bytes) <<Success >>
Response Code
(1 byte)
Response Status
(2 bytes)
Response Data Length
(2 bytes)
Response Data
(1 byte)
E1h
INT16 (>=0)
0001h
EEPROMDataStored
Note:
The Response Data (EEPROMDataStored) is used for comparison only.
Or
Response: From Reader to PC (5 bytes) << Fail>>
Response Code
(1 byte)
Response Status
(2 bytes)
Response Data Length
(2 byes)
E1h
INT16 (<0)
0000h