Class CcsdsFrameDecoder

java.lang.Object
org.yamcs.tctm.ccsds.CcsdsFrameDecoder
All Implemented Interfaces:
RawFrameDecoder

public class CcsdsFrameDecoder extends Object implements RawFrameDecoder
decodes raw frame data according to according to CCSDS 131.0-B-3. Only Reed-Solomon and de-randomization supported.
  • Constructor Details

  • 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 interface RawFrameDecoder
    • 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 interface RawFrameDecoder
      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 interface RawFrameDecoder
      Returns: