Package org.yamcs.tctm.ccsds.error
Class AosFrameHeaderErrorCorr
- java.lang.Object
-
- org.yamcs.tctm.ccsds.error.AosFrameHeaderErrorCorr
-
public class AosFrameHeaderErrorCorr extends Object
Reed-Solomon (10, 6) encoding/decoding as specified in CCSDS RECOMMENDED STANDARD FOR AOS SPACE DATA LINK PROTOCOL CCSDS 732.0-B-3 September 2015 4.1.2.6 Frame Header Error Control
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AosFrameHeaderErrorCorr.DecoderResult
-
Constructor Summary
Constructors Constructor Description AosFrameHeaderErrorCorr()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AosFrameHeaderErrorCorr.DecoderResult
decode(int gvcid, int signalingField, int errControl)
Based on the received header information, reconstitutes the correct header if possiblestatic int
encode(int gvcid, int signalingField)
Compute the Error Control word based on the virtual channel id and signaling field byte
-
-
-
Method Detail
-
encode
public static int encode(int gvcid, int signalingField)
Compute the Error Control word based on the virtual channel id and signaling field byte- Parameters:
gvcid
- 10-bit Master Channel Identifier followed by the Virtual Channel Identifier in the lowest 16 bits of the variablesignalingField
- - 8 bit signalling byte in the lowest 8 bits of the variable- Returns:
-
decode
public static AosFrameHeaderErrorCorr.DecoderResult decode(int gvcid, int signalingField, int errControl) throws ReedSolomonException
Based on the received header information, reconstitutes the correct header if possible- Parameters:
gvcid
- 10-bit Master Channel Identifier followed by the Virtual Channel IdentifiersignalingField
- 8 bit signalling byteerrControl
- 16 bits error control- Returns:
- Throws:
ReedSolomonException
- thrown if data cannot be decoded/corrected
-
-