Class CspPacket

java.lang.Object
org.yamcs.tctm.csp.CspPacket

public class CspPacket extends Object
Helper class for accessing CubeSat Space Protocol v1 fields
  • Field Details

  • Constructor Details

    • CspPacket

      public CspPacket(byte[] packet)
    • CspPacket

      public CspPacket(ByteBuffer bb)
  • Method Details

    • getPriority

      public int getPriority()
    • getSource

      public int getSource()
    • getSource

      public static int getSource(byte[] packet)
    • getSourcePort

      public int getSourcePort()
    • getDestination

      public int getDestination()
    • getDestination

      public static int getDestination(byte[] packet)
    • getDestinationPort

      public int getDestinationPort()
    • getHmacFlag

      public boolean getHmacFlag()
    • getXteaFlag

      public boolean getXteaFlag()
    • getRdpFlag

      public boolean getRdpFlag()
    • getCrcFlag

      public boolean getCrcFlag()
    • getCrcFlag

      public static boolean getCrcFlag(byte[] packet)
    • setCrcFlag

      public static void setCrcFlag(byte[] packet, boolean enabled)
    • setHeader

      public void setHeader(byte priority, byte source, byte destination, byte destinationPort, byte sourcePort)
    • setHeader

      public void setHeader(byte priority, byte source, byte destination, byte destinationPort, byte sourcePort, boolean hmacFlag, boolean xteaFlag, boolean rdpFlag, boolean crcFlag)
    • getLength

      public int getLength()
    • getBytes

      public byte[] getBytes()
    • getByteBuffer

      public ByteBuffer getByteBuffer()
    • toString

      public String toString()
      Overrides:
      toString in class Object