public class CcsdsPacket extends Object implements Comparable<CcsdsPacket>
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
bb |
static int |
DATA_OFFSET |
static int |
MAX_CCSDS_SIZE |
| Constructor and Description |
|---|
CcsdsPacket(byte[] packet) |
CcsdsPacket(ByteBuffer bb) |
public static final int DATA_OFFSET
public static final int MAX_CCSDS_SIZE
protected ByteBuffer bb
public CcsdsPacket(byte[] packet)
public CcsdsPacket(ByteBuffer bb)
public int getSecondaryHeaderFlag()
public static boolean getSecondaryHeaderFlag(byte[] packet)
public int getSequenceCount()
public static int getSequenceCount(byte[] packet)
public void setSequenceCount(short seqCount)
public static short getSequenceCount(ByteBuffer bb)
public int getAPID()
public void setAPID(int apid)
public static short getAPID(ByteBuffer bb)
public static int getCccsdsPacketLength(ByteBuffer bb)
public int getCccsdsPacketLength()
public void setCccsdsPacketLength(short length)
public int getLength()
public long getInstant()
public static long getInstant(ByteBuffer bb)
public long getCoarseTime()
public int getTimeId()
public void setCoarseTime(int time)
public static long getCoarseTime(ByteBuffer bb)
public int getFineTime()
public void setFineTime(short fineTime)
public static int getFineTime(ByteBuffer bb)
public boolean getChecksumIndicator()
public static boolean getChecksumIndicator(byte[] packet)
public int getPacketID()
public void setPacketID(int id)
public byte[] getBytes()
public ByteBuffer getByteBuffer()
public int getPrivateHeaderClass()
public int getPrivateHeaderType()
public int getPrivateHeaderSource()
public static CcsdsPacket getPacketFromStream(InputStream input) throws IOException
IOExceptionpublic static long getInstant(byte[] pkt)
public static short getAPID(byte[] packet)
public static int getCccsdsPacketLength(byte[] buf)
public int compareTo(CcsdsPacket p)
compareTo in interface Comparable<CcsdsPacket>Copyright © 2019 Space Applications Services. All rights reserved.