User's Manual

CAEN RFID API Reference Manual
105
CAENRFIDTag Class
The CAENRFIDTag class is used to define objects representing the tags. These objects are used as return values for the
inventory methods and as arguments for many tag access methods.
In both Java and C# lanuguage this class is composed by methods while in C language the following struct is present
(for more informations see § Overview on SDK pag.7):
C representation:
typedef struct {
byte ID[MAX_ID_LENGTH];
short Length;
char LogicalSource[MAX_LOGICAL_SOURCE_NAME];
char ReadPoint[MAX_READPOINT_NAME];
CAENRFIDProtocol Type;
short RSSI;
byte TID[MAX_TID_SIZE];
short TIDLen;
} CAENRFIDTag;
GetId Method
Description:
This method returns the tag's ID (the EPC code in Gen2 tags).
Return value:
An array of bytes representing the tag's ID (the EPC code in EPC Class 1 Gen 2 tags).
Syntax:
C# representation:
public byte[] GetId()
JAVA representation:
public byte[] GetId()
GetLength Method
Description:
This method returns the tag's ID length.
Return value:
The tag's length.
Syntax:
C# representation:
public short GetLength()
JAVA representation:
public short GetLength()