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
Fields inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
seqMap
Fields inherited from class org.yamcs.tctm.CcsdsPacket
bb
-
Constructor Summary
ConstructorDescriptionPusTcPacket
(byte[] packet) PusTcPacket
(int apid, int userDataLength, int ackFlags, int type, int subtype) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
int
int
int
getType()
void
setSubtype
(int subtype) void
setType
(int type) toString()
Methods inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
getSeq
Methods 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() -
getAckFlags
public int getAckFlags() -
getUserDataBuffer
- Specified by:
getUserDataBuffer
in classSimulatorCcsdsPacket
-
fillChecksum
protected void fillChecksum()- Specified by:
fillChecksum
in classSimulatorCcsdsPacket
-
toString
- Overrides:
toString
in classCcsdsPacket
-