public class PcBits
extends java.lang.Object
Constructor and Description |
---|
PcBits() |
Modifier and Type | Method and Description |
---|---|
static short |
AdjustPcBits(short currentPcBits,
short newEpcLengthInWords)
Returns new PC bits, based on the current
PC bits and the new EPC length.
|
static short |
EpcLengthInWords(short pcBits)
Determine the EPC length (in words) from the PC bits
|
static java.lang.String |
toHexString(short pcBits)
formats the EPC bits as a hex string.
|
public static short AdjustPcBits(short currentPcBits, short newEpcLengthInWords)
currentPcBits
- the current PC bits read from the tagnewEpcLengthInWords
- the new epc length of the EPC you are writingpublic static short EpcLengthInWords(short pcBits)
pcBits
- the PC bits read from the tagpublic static java.lang.String toHexString(short pcBits)
pcBits
- the PC bits read from a tag