Class 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 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()
    • getSourceId

      public int getSourceId()
    • 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 CcsdsPacket