edu.uiuc.cs.seclab.modem.xbee
Class XBeeTxPacketImpl
java.lang.Object
edu.uiuc.cs.seclab.modem.xbee.XBeeApiPacketImpl
edu.uiuc.cs.seclab.modem.xbee.XBeeOutPktImpl
edu.uiuc.cs.seclab.modem.xbee.XBeeTxPacketImpl
public class XBeeTxPacketImpl
- extends XBeeOutPktImpl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
addr
protected XBeeAddress addr
bcastRadius
protected byte bcastRadius
CMD_ADDR16_ID
public static final byte CMD_ADDR16_ID
- See Also:
- Constant Field Values
CMD_ADDR64_ID
public static final byte CMD_ADDR64_ID
- See Also:
- Constant Field Values
CMD_ZIGBEE_ID
public static final byte CMD_ZIGBEE_ID
- See Also:
- Constant Field Values
data
protected byte[] data
MAX_LEN
public static final int MAX_LEN
- See Also:
- Constant Field Values
options
protected byte options
shortAddr
protected XBee16Address shortAddr
- Used in ZigBee transmissions, if addr is XBee64Address:
TX_OPT_BCAST_PAN_ID
public static final byte TX_OPT_BCAST_PAN_ID
- See Also:
- Constant Field Values
TX_OPT_DISABLE_ACK
public static final byte TX_OPT_DISABLE_ACK
- See Also:
- Constant Field Values
TX_OPT_DISABLE_ADDR_DISCOVERY
public static final byte TX_OPT_DISABLE_ADDR_DISCOVERY
- Only applicable to ZigBee transmissions:
- See Also:
- Constant Field Values
ZB_MAX_LEN
public static final int ZB_MAX_LEN
- See Also:
- Constant Field Values
XBeeTxPacketImpl
public XBeeTxPacketImpl()
XBeeTxPacketImpl
public XBeeTxPacketImpl(byte frameId_,
XBee64Address longAddr_,
XBee16Address shortAddr_,
byte bcastRadius_,
byte options_,
byte[] data_)
throws ModemException
- Throws:
ModemException
XBeeTxPacketImpl
public XBeeTxPacketImpl(byte frameId_,
XBeeAddress addr_,
byte options_,
byte[] data_)
throws ModemException
- Throws:
ModemException
acceptVisitor
public void acceptVisitor(XBeeApiPacketVisitor visitor)
- Specified by:
acceptVisitor in class XBeeApiPacketImpl
getCmdId
public byte getCmdId()
- Specified by:
getCmdId in class XBeeApiPacketImpl
getTxDataLen
public int getTxDataLen()
localGetData
public void localGetData(java.lang.StringBuilder sb)
- Description copied from class:
XBeeApiPacketImpl
- Produce a data blob for the inner part of an API packet
- Specified by:
localGetData in class XBeeApiPacketImpl
parse
public void parse(byte cmdId,
byte[] bytes,
int offset,
int len)
throws ModemException
- Description copied from class:
XBeeApiPacketImpl
- Parse the inner part of an API packet
- Specified by:
parse in class XBeeApiPacketImpl
- Throws:
ModemException
setFrameId
public void setFrameId(byte frameId_)
toString
public java.lang.String toString()
- Overrides:
toString in class XBeeApiPacketImpl