ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 14 of 52
3.8. ACR120_DirectReceive
Directly receives data from the Mifare® Chip.
High Level API
:
DLLAPI INT16 AC_DECL
ACR120_DirectReceive(UINT16 hReader,
UINT8 RespectedDataLength,
UINT8* pReceivedDataLength,
UINT8* pReceivedData,
UINT16 TimedOut,);
Parameters
Description
hReader
Handle to the Reader returned by AC_Open()
RespectedDataLength
Respected data length to be received (maximum 64
bytes)
pReceivedDataLength (K) Data length of the received data
pReceivedData
Received data
TimedOut
Time Out for waiting the response data (ms)
Return Value
INT16
0 = success; Error Code < 0
Table 9
: ACR120_DirectReceive Command Description
Low Level Frame Structure:
Command: From PC to Reader (5 Bytes)
Command Code
(1 byte)
Command Data Length
(1 bytes)
Data
(2 bytes)
E0h
02h
RespectedDataLength <= 64 bytes
Response: From Reader to PC (K + 5 Bytes) <<Success or Fail>>
Response Code
(1 byte)
Response Status
(2 bytes)
Response Data Length
(2 bytes)
Response Data
(K bytes)
E1h
INT16
PReceivedDataLength (K)
pReceivedData
Note:
ACR120_DirectSend() & ACR120_DirectReceive() must be used in a pair.