sidnet.stack.std.mac.ieee802_15_4
Class hdr_mac
java.lang.Object
sidnet.stack.std.mac.ieee802_15_4.hdr_mac
- All Implemented Interfaces:
- java.io.Serializable, JistAPI.Timeless, Header
public class hdr_mac
- extends java.lang.Object
- implements Header, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hdr_mac
public hdr_mac()
set
public void set(sidnet.stack.std.mac.ieee802_15_4.MacFrameType ft,
short sa,
short da)
ftype
public sidnet.stack.std.mac.ieee802_15_4.MacFrameType ftype()
macSA
public int macSA()
macDA
public int macDA()
hdr_type
public int hdr_type()
txtime
public double txtime()
copy
public hdr_mac copy()
getBytes
public void getBytes(byte[] hdr,
int offset)
- Description copied from interface:
Header
- Store header into byte array.
- Specified by:
getBytes
in interface Header
offset
- byte array starting offset
getSize
public int getSize()
- Description copied from interface:
Header
- Return header size or Constants.ZERO_WIRE_SIZE.
- Specified by:
getSize
in interface Header
- Returns:
- header size [in bytes]
serialize
public char[] serialize()
unserialize
public static hdr_mac unserialize(byte[] stream)