java.lang.Object
org.yamcs.tctm.CcsdsPacket
org.yamcs.simulator.SimulatorCcsdsPacket
org.yamcs.simulator.pus.PusTmPacket
TM packets according to PUS standard
ECSS-E-ST-70-41C 15 April 2016
Secondary 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
FieldsModifier and TypeFieldDescriptionprotected static HashMap<Integer,AtomicInteger> static final intstatic final intFields inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
seqMapFields inherited from class org.yamcs.tctm.CcsdsPacket
bb -
Constructor Summary
ConstructorsConstructorDescriptionPusTmPacket(byte[] packet) PusTmPacket(int apid, int userDataLength, int type, int subtype) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected static intgetCount(int apid) voidsetSubtype(int subtype) voidsetType(int type) Methods inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
getSeqMethods 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, toString
-
Field Details
-
SH_OFFSET
public static final int SH_OFFSET- See Also:
-
DATA_OFFSET
public static final int DATA_OFFSET- See Also:
-
countMap
-
-
Constructor Details
-
PusTmPacket
public PusTmPacket(byte[] packet) -
PusTmPacket
public PusTmPacket(int apid, int userDataLength, int type, int subtype)
-
-
Method Details
-
setType
public void setType(int type) -
setSubtype
public void setSubtype(int subtype) -
getUserDataBuffer
- Specified by:
getUserDataBufferin classSimulatorCcsdsPacket
-
fillChecksum
protected void fillChecksum()- Specified by:
fillChecksumin classSimulatorCcsdsPacket
-
getCount
protected static int getCount(int apid)
-