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