Package org.yamcs.tctm.ccsds.error
Class Ldpc256CltuGenerator
java.lang.Object
org.yamcs.tctm.ccsds.error.CltuGenerator
org.yamcs.tctm.ccsds.error.Ldpc256CltuGenerator
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.yamcs.tctm.ccsds.error.CltuGenerator
CltuGenerator.Encoding
-
Field Summary
FieldsFields inherited from class org.yamcs.tctm.ccsds.error.CltuGenerator
EMPTY_SEQ, startSeq, tailSeq
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
makeCltu
(byte[] frameData, boolean randomize) encode the data optionally randomizing it.
-
Field Details
-
CCSDS_START_SEQ
public static final byte[] CCSDS_START_SEQ
-
-
Constructor Details
-
Ldpc256CltuGenerator
public Ldpc256CltuGenerator() -
Ldpc256CltuGenerator
public Ldpc256CltuGenerator(byte[] startSeq, byte[] tailSeq)
-
-
Method Details
-
makeCltu
public byte[] makeCltu(byte[] frameData, boolean randomize) Description copied from class:CltuGenerator
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.- Specified by:
makeCltu
in classCltuGenerator
- Returns:
- - the encoded data
-