Package org.yamcs.simulator.pus
Class PusTcPacket
- java.lang.Object
-
- org.yamcs.tctm.CcsdsPacket
-
- org.yamcs.simulator.SimulatorCcsdsPacket
-
- org.yamcs.simulator.pus.PusTcPacket
-
public class PusTcPacket extends SimulatorCcsdsPacket
TC packets according to PUS standard ECSS-E-ST-70-41C 15 April 2016Secondary header (5 bytes) version number - 4 bits acknowledgement flags - 4 bits service type - 8 bits service subtype - 8 bits source Id - 16 bits
-
-
Field Summary
Fields Modifier and Type Field Description static intDATA_OFFSETstatic intSH_OFFSET-
Fields inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
seqMap
-
Fields inherited from class org.yamcs.tctm.CcsdsPacket
bb
-
-
Constructor Summary
Constructors Constructor Description PusTcPacket(byte[] packet)PusTcPacket(int apid, int userDataLength, int ackFlags, int type, int subtype)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillChecksum()intgetAckFlags()intgetSubtype()intgetType()protected ByteBuffergetUserDataBuffer()voidsetSubtype(int subtype)voidsetType(int type)StringtoString()-
Methods inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
getSeq
-
Methods inherited from class org.yamcs.tctm.CcsdsPacket
appendBinaryData, getAPID, getAPID, getAPID, getByteBuffer, getBytes, getCccsdsPacketLength, getCccsdsPacketLength, getCccsdsPacketLength, getChecksumIndicator, getChecksumIndicator, getCoarseTime, getLength, getSecondaryHeaderFlag, getSecondaryHeaderFlag, getSequenceCount, getSequenceCount, getSequenceCount, getTimeId, setAPID, setCccsdsPacketLength, setHeader, setSequenceCount
-
-
-
-
Field Detail
-
SH_OFFSET
public static final int SH_OFFSET
- See Also:
- Constant Field Values
-
DATA_OFFSET
public static final int DATA_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
setType
public void setType(int type)
-
getType
public int getType()
-
setSubtype
public void setSubtype(int subtype)
-
getSubtype
public int getSubtype()
-
getAckFlags
public int getAckFlags()
-
getUserDataBuffer
protected ByteBuffer getUserDataBuffer()
- Specified by:
getUserDataBufferin classSimulatorCcsdsPacket
-
fillChecksum
protected void fillChecksum()
- Specified by:
fillChecksumin classSimulatorCcsdsPacket
-
toString
public String toString()
- Overrides:
toStringin classCcsdsPacket
-
-