com.connecterra.ale.reader
Interface AbstractPhysicalDevice.BankWriteTagProcessor
- All Known Subinterfaces:
- AbstractPhysicalDevice.BankTagProcessor, AbstractPhysicalDevice.EPCglobalClass1Gen2TagProcessor
- Enclosing class:
- AbstractPhysicalDevice
public static interface AbstractPhysicalDevice.BankWriteTagProcessor
TagProcessors should implement this interface if the device can write data
to memory banks on the associated tag.
writeMemoryBank
WriteDeviceOpReport writeMemoryBank(String bank,
int offset,
int length,
long[] writeData)
throws IOException,
AbstractPhysicalDevice.TagResultException
- Parameters:
bank - the memory bank to write data to. See EPCGen2Util for helper
methods to convert this bank name into an EPCglobal Class 1 Gen 2
standard bank number. Other tag types may define their own values for
this bank.offset - the offset of the memory extent to write to within the named banklength - the length of data to write (0 < length <= 128)writeData - the data to write as a long array. This will come in as a long[2]
prefaced with 0 bits padding it out to the full length.
- Returns:
- the ReadDeviceOpReport containing the results of the read operation. Data
returned in the report must be a long array of length 1 or 2.
- Throws:
IOException - if there is an IO error attempting to communicate with the device
AbstractPhysicalDevice.TagResultException - if there is an error writing the value to the tag. See
AbstractPhysicalDevice.TagResultException.