Package org.yamcs.simulator.pus
Class PusTmPacket
- java.lang.Object
-
- org.yamcs.tctm.CcsdsPacket
-
- org.yamcs.simulator.SimulatorCcsdsPacket
-
- org.yamcs.simulator.pus.PusTmPacket
-
public class PusTmPacket extends SimulatorCcsdsPacket
TM packets according to PUS standard ECSS-E-ST-70-41C 15 April 2016Secondary header (16 bytes) version number - 4 bits spacecraft time reference status - 4 bits service type - 8 bits message subtype - 8 bits message type counter - 16 bits destination Id - 16 bits time - variable size but we use 9 bytes
-
-
Field Summary
Fields Modifier and Type Field Description protected static HashMap<Integer,AtomicInteger>countMapstatic 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 PusTmPacket(byte[] packet)PusTmPacket(int apid, int userDataLength, int type, int subtype)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillChecksum()protected static intgetCount(int apid)protected ByteBuffergetUserDataBuffer()voidsetSubtype(int subtype)voidsetType(int type)-
Methods inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
getSeq
-
Methods inherited from class org.yamcs.tctm.CcsdsPacket
getAPID, getAPID, getAPID, getByteBuffer, getBytes, getCccsdsPacketLength, getCccsdsPacketLength, getCccsdsPacketLength, getChecksumIndicator, getChecksumIndicator, getCoarseTime, getLength, getPacketID, getSecondaryHeaderFlag, getSecondaryHeaderFlag, getSequenceCount, getSequenceCount, getSequenceCount, getTimeId, setAPID, setCccsdsPacketLength, setHeader, setPacketID, setSequenceCount, toString
-
-
-
-
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
-
countMap
protected static HashMap<Integer,AtomicInteger> countMap
-
-
Method Detail
-
setType
public void setType(int type)
-
setSubtype
public void setSubtype(int subtype)
-
getUserDataBuffer
protected ByteBuffer getUserDataBuffer()
- Specified by:
getUserDataBufferin classSimulatorCcsdsPacket
-
fillChecksum
protected void fillChecksum()
- Specified by:
fillChecksumin classSimulatorCcsdsPacket
-
getCount
protected static int getCount(int apid)
-
-