ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 11 of 52
3.5. ACR120_ReadRC531Reg
Reads the Mifare® register.
High Level API:
DLLAPI INT16 AC_DECL
ACR120_ReadRC531Reg(INT16 hReader,
UINT8 RegNo,
UINT8* pValue);
Parameters
Description
hReader
Handle to the Reader returned by AC_Open()
RegNo
Register number
pValue
Mifare® register’s value
Return Value
INT16
0 = success; Error Code < 0
Table 6
: ACR120_ReadRC531Reg Command Description
Low Level Frame Structure:
Command: From PC to Reader (6 bytes)
Command Code
(1 byte)
Command Data Length
(1 bytes)
Instruction Code
(1 byte)
Data Length
(1 byte)
Data
(1 byte)
E0h
03h
19h
01h
RegNo
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
pValue