java.lang.Object
org.yamcs.tctm.ccsds.error.CltuGenerator
org.yamcs.tctm.ccsds.error.BchCltuGenerator
Makes CLTUs from command transfer frames as per
CCSDS 231.0-B-3 (TC SYNCHRONIZATION AND CHANNEL CODING)
Implements BCH encoder
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.yamcs.tctm.ccsds.error.CltuGenerator
CltuGenerator.Encoding -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]static final byte[]Fields inherited from class org.yamcs.tctm.ccsds.error.CltuGenerator
EMPTY_SEQ, startSeq, tailSeq -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]makeCltu(byte[] data, boolean randomize) encode the data optionally randomizing it.
-
Field Details
-
CCSDS_START_SEQ
public static final byte[] CCSDS_START_SEQ -
CCSDS_TAIL_SEQ
public static final byte[] CCSDS_TAIL_SEQ
-
-
Constructor Details
-
BchCltuGenerator
public BchCltuGenerator() -
BchCltuGenerator
public BchCltuGenerator(byte[] startSeq, byte[] tailSeq)
-
-
Method Details
-
makeCltu
public byte[] makeCltu(byte[] data, boolean randomize) Description copied from class:CltuGeneratorencode 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:
makeCltuin classCltuGenerator- Returns:
- - the encoded data
-