Elatec GmbH TWN3A1 User Manual

Page of 44
Elatec GmbH 
Page 32 of 44 
byte TagWrite(byte Address, byte ByteCnt, byte &Data) 
Write data to a selected transponder. 
Parameters: 
byte Address
 
The address within the address space of the transponder. 
byte ByteCnt
 
Number of bytes to write. 
byte &Data
 
Reference to an array of bytes to be written. 
Return: 
If the operation was successful, the return value is TRUE, otherwise it is 
FALSE
 
7.2.5.1.2  Multi125-Specific Transponder Operations 
byte Multi125SearchLogin(byte &IDData, byte &IDBitCnt, 
                         byte &TagType, byte &Secret) 
Perform a search for transponders and login to Hitag2 or EM4150 transponders if applicable. This 
function behaves similar to the function TagSearch except the fact, that it also tries to perform a login 
with the given key information. 
Parameters: 
byte &IDData
 
Reference to a bit field (in fact an array of bytes), which receives the ID 
data. 
byte &IDBitCnt
 
Number of valid bits(!), the ID consists of. 
byte &TagType
 
Type of tag, which has been found. 
byte &Secret
 
Reference to an array of bytes, which must contain four bytes. These 
bytes represent the key for the login process. 
Return: 
If the operation was successful, the return value is TRUE, otherwise it is 
FALSE
 
byte Multi125Generic(byte &TXData, byte TXCount, byte &RXData, 
                         byte &RXCount, byte MaxRXCount, byte Timeout) 
Send a specific command to the built in module of a Multi125 reader. 
Parameters: 
byte &TXData
 
Reference to an array of bytes which contains the command to be sent 
to the module. 
byte TXCount
 
Count of bytes in the specified array of bytes to be sent. 
byte &RXData
 
Reference to an array of bytes (receive buffer) which receives the 
answer from the module. 
byte &RXCount
 
Count of bytes, which have been received. 
byte MaxRXCount
 
The size of the receive buffer. 
byte Timeout
 
Timeout time in multiples of 100 milliseconds. 
Return: 
If the operation was successful, the return value is TRUE, otherwise it is 
FALSE
Please note, that both TXData and RXData do contain a telegram without length, address and BCC.