Package org.yamcs.tctm.ccsds.error
Class CltuGenerator
java.lang.Object
org.yamcs.tctm.ccsds.error.CltuGenerator
- Direct Known Subclasses:
BchCltuGenerator
,Ldpc256CltuGenerator
,Ldpc64CltuGenerator
Makes CLTUs from command transfer frames as per
CCSDS 231.0-B-3 (TC SYNCHRONIZATION AND CHANNEL CODING)
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]
makeCltu
(byte[] data, boolean randomize) encode the data optionally randomizing it.
-
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
-