Package org.yamcs.tctm.ccsds
Class CcsdsFrameDecoder
java.lang.Object
org.yamcs.tctm.ccsds.CcsdsFrameDecoder
- All Implemented Interfaces:
RawFrameDecoder
decodes raw frame data according to according to CCSDS 131.0-B-3.
Only Reed-Solomon and de-randomization supported.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the length of the decoded frame or -1 if it can be variableint
decodeFrame
(byte[] data, int offset, int length) Decodes frame in the buffer at offset.int
Returns the length of the encoded (input) frame or -1 if it can be variable
-
Constructor Details
-
CcsdsFrameDecoder
-
-
Method Details
-
decodeFrame
public int decodeFrame(byte[] data, int offset, int length) Description copied from interface:RawFrameDecoder
Decodes frame in the buffer at offset. The decoded frame is stored in the same buffer.Returns the length of the decoded and corrected frame or -1 if the frame could not be decoded
- Specified by:
decodeFrame
in interfaceRawFrameDecoder
-
encodedFrameLength
public int encodedFrameLength()Description copied from interface:RawFrameDecoder
Returns the length of the encoded (input) frame or -1 if it can be variable- Specified by:
encodedFrameLength
in interfaceRawFrameDecoder
- Returns:
-
decodedFrameLength
public int decodedFrameLength()Description copied from interface:RawFrameDecoder
Returns the length of the decoded frame or -1 if it can be variable- Specified by:
decodedFrameLength
in interfaceRawFrameDecoder
- Returns:
-