Package org.yamcs.examples.ccsdsframes
Class SampleCltuGenerator
java.lang.Object
org.yamcs.tctm.ccsds.error.CltuGenerator
org.yamcs.examples.ccsdsframes.SampleCltuGenerator
Implements a CLTU generator that pads the CLTU to a multiple of a specified
size. Note that the result is not a valid CCSDS TC CLTU. This processing is for
example purposes only.
The randomization option is ignored.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.tctm.ccsds.error.CltuGenerator
CltuGenerator.Encoding
-
Field Summary
Fields inherited from class org.yamcs.tctm.ccsds.error.CltuGenerator
EMPTY_SEQ, startSeq, tailSeq
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
makeCltu
(byte[] data, boolean randomize) encode the data optionally randomizing it.
-
Constructor Details
-
SampleCltuGenerator
public SampleCltuGenerator() -
SampleCltuGenerator
-
-
Method Details
-
makeCltu
public byte[] makeCltu(byte[] data, 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
-