User's Manual

CAEN RFID API Reference Manual
71
WriteTagData_EPC_C1G2 Method (Int16, Int16, Int16, Byte[], Int16, Int16, Int16, Byte[], Int32)
Description:
This method can be used to write a portion of memory in an ISO18000-6C (EPC Class1 Gen2) tag after having put the
tag in Secured state using the Access command.
Parameters:
Name
Description
BankMask
Memory bank for tag identificantion.
PositionMask
Bit position (from the start of the selected bank) where apply the mask to match.
LengthMask
Length of the mask.
Mask
Mask of byte.
MemBank
The memory bank where to write the data.
Address
The address where to start writing the data.
Length
The number of byte to be written.
Data
An array of bytes representing the data to be written into the tag.
AccessPassword
The access password.
Syntax:
C# representation:
public void WriteTagData_EPC_C1G2(
short BankMask,
short PositionMask,
short LengthMask,
byte[] Mask,
short MemBank,
short Address,
short Length,
byte[] Data,
int AccessPassword)
Java and Android representation:
public void WriteTagData_EPC_C1G2(
short BankMask,
short PositionMask,
short LengthMask,
byte[] Mask,
short MemBank,
short Address,
short Length,
byte[] Data,
int AccessPassword)
throws CAENRFIDException
C representation:
CAENRFIDErrorCodes CAENRFID_SecureBankFilteredWriteTagData_EPC_C1G2(
CAENRFIDHandle handle,
char *SourceName,
short BankMask,
short PositionMask,
short LengthMask,
char *Mask,
short MemBank,
int Address,
int Length,
void *Data,
int AccessPassword);