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 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
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    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

    Modifier and Type
    Method
    Description
    protected void
     
    int
     
    int
     
    int
     
     
    void
    setSubtype(int subtype)
     
    void
    setType(int type)
     
     

    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, getCcsdsPacketLength, getCcsdsPacketLength, getCcsdsPacketLength, getChecksumIndicator, getChecksumIndicator, getCoarseTime, getLength, getSecondaryHeaderFlag, getSecondaryHeaderFlag, getSequenceCount, getSequenceCount, getSequenceCount, getTimeId, setAPID, setCccsdsPacketLength, setCcsdsPacketLength, setHeader, setSequenceCount

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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

      public ByteBuffer getUserDataBuffer()
      Specified by:
      getUserDataBuffer in class SimulatorCcsdsPacket
    • fillChecksum

      protected void fillChecksum()
      Specified by:
      fillChecksum in class SimulatorCcsdsPacket
    • toString

      public String toString()
      Overrides:
      toString in class org.yamcs.tctm.CcsdsPacket