Package org.yamcs.simulator.pus
Class PusTcPacket
java.lang.Object
org.yamcs.tctm.CcsdsPacket
org.yamcs.simulator.SimulatorCcsdsPacket
org.yamcs.simulator.pus.PusTcPacket
TC packets according to PUS standard
ECSS-E-ST-70-41C 15 April 2016
Secondary 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
FieldsFields inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
seqMapFields inherited from class org.yamcs.tctm.CcsdsPacket
bb -
Constructor Summary
ConstructorsConstructorDescriptionPusTcPacket(byte[] packet) PusTcPacket(int apid, int userDataLength, int ackFlags, int type, int subtype) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintintintintgetType()voidsetSubtype(int subtype) voidsetType(int type) toString()Methods inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
getSeqMethods inherited from class org.yamcs.tctm.CcsdsPacket
appendBinaryData, getAPID, getAPID, getAPID, getByteBuffer, getBytes, getCcsdsPacketLength, getCcsdsPacketLength, getCcsdsPacketLength, getChecksumIndicator, getChecksumIndicator, getCoarseTime, getLength, getSecondaryHeaderFlag, getSecondaryHeaderFlag, getSequenceCount, getSequenceCount, getSequenceCount, getTimeId, setAPID, setCcsdsPacketLength, setHeader, setSequenceCount, wrap
-
Field Details
-
SH_OFFSET
public static final int SH_OFFSET- See Also:
-
DATA_OFFSET
public static final int DATA_OFFSET- See Also:
-
-
Constructor Details
-
PusTcPacket
public PusTcPacket(byte[] packet) -
PusTcPacket
public PusTcPacket(int apid, int userDataLength, int ackFlags, int type, int subtype)
-
-
Method Details
-
setType
public void setType(int type) -
getType
public int getType() -
setSubtype
public void setSubtype(int subtype) -
getSubtype
public int getSubtype() -
getSourceId
public int getSourceId() -
getAckFlags
public int getAckFlags() -
getUserDataBuffer
- Specified by:
getUserDataBufferin classSimulatorCcsdsPacket
-
fillChecksum
protected void fillChecksum()- Specified by:
fillChecksumin classSimulatorCcsdsPacket
-
toString
- Overrides:
toStringin classCcsdsPacket
-