ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 27 of 52
4.4. ACR120_TxDataTelegram
Sends data to the Mifare® Chip.
High Level API
:
DLLAPI INT16 AC_DECL
ACR120_TxDataTelegram(INT16 hReader,
UINT8 SendDataLength,
UINT8* pSendData
UINT8* pReceivedDataLength,
UINT8* pReceivedData);
Parameters
Description
hReader
Handle to the reader returned by AC_Open()
SendDataLength (N)
Length of data to be sent
pSendData
Data to be sent
pReceivedDataLength (K) Length of received data
pReceivedData
Received data
Return Value
INT16
Result code. 0 means success.
Table 19
: ACR120_TxDataTelegram Command Description
Low Level Frame Structure:
Command: From PC to Reader (N+5 bytes)
Command Code
(1 Byte)
Command Data Length
(2 bytes)
Instruction Code
(1 byte)
Data Length
(1 byte)
Data
(N bytes)
E0h
N+0002h
16h
N
SendData
Response: From Reader to PC (K+5 bytes) <<Success >>
Response Code
(1 byte)
Response Status
(2 bytes)
Response
Data Length
(2 bytes)
Response Data
(K bytes)
E1h
INT16 (>=0)
Kh
pReceivedData