frame
Class RtoTFrame

java.lang.Object
  extended by frame.RFIDFrame
      extended by frame.RtoTFrame
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
AckFrame, QueryAdjFrame, QueryFrame, QueryRepFrame, SelectFrame

public abstract class RtoTFrame
extends RFIDFrame

Base class for all frames from the reader to the tags. All such tags have a command field as their first four bits. (Frames from the tags to the reader do not have a command field.)


Nested Class Summary
 
Nested classes/interfaces inherited from class frame.RFIDFrame
RFIDFrame.FrameType
 
Field Summary
static int ACK_CMD
           
static int CORRUPTED_CMD
           
static int QUERY_CMD
           
static int QUERYADJ_CMD
           
static int QUERYREP_CMD
           
protected static int RtoT_CMD_FIELD
           
protected static int RtoT_CMD_WIDTH
           
static int SELECT_CMD
           
 
Fields inherited from class frame.RFIDFrame
CRC_SIZE, data, hasCRC, isCorrupted
 
Constructor Summary
protected RtoTFrame(int size, int cmd, RFIDFrame.FrameType type)
           
 
Method Summary
 int getCommand()
          Extracts the command field bits.
 
Methods inherited from class frame.RFIDFrame
clone, dup, flipBit, getSize, getType, hasCRC, isCollision, isCorrupted, markCorrupted, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RtoT_CMD_FIELD

protected static final int RtoT_CMD_FIELD
See Also:
Constant Field Values

RtoT_CMD_WIDTH

protected static final int RtoT_CMD_WIDTH
See Also:
Constant Field Values

QUERYREP_CMD

public static final int QUERYREP_CMD
See Also:
Constant Field Values

ACK_CMD

public static final int ACK_CMD
See Also:
Constant Field Values

QUERY_CMD

public static final int QUERY_CMD
See Also:
Constant Field Values

QUERYADJ_CMD

public static final int QUERYADJ_CMD
See Also:
Constant Field Values

SELECT_CMD

public static final int SELECT_CMD
See Also:
Constant Field Values

CORRUPTED_CMD

public static final int CORRUPTED_CMD
See Also:
Constant Field Values
Constructor Detail

RtoTFrame

protected RtoTFrame(int size,
                    int cmd,
                    RFIDFrame.FrameType type)
Method Detail

getCommand

public int getCommand()
Extracts the command field bits.