Class CltuGenerator

java.lang.Object
org.yamcs.tctm.ccsds.error.CltuGenerator
Direct Known Subclasses:
BchCltuGenerator, Ldpc256CltuGenerator, Ldpc64CltuGenerator

public abstract class CltuGenerator extends Object
Makes CLTUs from command transfer frames as per CCSDS 231.0-B-3 (TC SYNCHRONIZATION AND CHANNEL CODING)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte[]
     
    protected final byte[]
     
    protected final byte[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CltuGenerator(byte[] startSeq, byte[] tailSeq)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract byte[]
    makeCltu(byte[] data, boolean randomize)
    encode the data optionally randomizing it.

    Methods inherited from class java.lang.Object

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

    • EMPTY_SEQ

      public static final byte[] EMPTY_SEQ
    • startSeq

      protected final byte[] startSeq
    • tailSeq

      protected final byte[] tailSeq
  • Constructor Details

    • CltuGenerator

      public CltuGenerator(byte[] startSeq, byte[] tailSeq)
  • Method Details

    • makeCltu

      public abstract byte[] makeCltu(byte[] data, boolean randomize)
      encode the data optionally randomizing it. Note that randomization is mandatory for the LDCP codec so that codec will throw an IllegalArgumentException if the argument is false.
      Returns:
      - the encoded data