Package org.yamcs.tctm.ccsds.error
Class CrcCciitCalculator
- java.lang.Object
-
- org.yamcs.tctm.ccsds.error.CrcCciitCalculator
-
- All Implemented Interfaces:
ErrorDetectionWordCalculator
public class CrcCciitCalculator extends Object implements ErrorDetectionWordCalculator
Cylcic Redundancy Check (CRC-CCIIT 0xFFFF). 1 + x + x^5 + x^12 + x^16 Also specified in: CCSDS RECOMMENDED STANDARD FOR TC SPACE DATA LINK PROTOCOL CCSDS 232.0-B-3 September 2015 4.1.4 FRAME ERROR CONTROL FIELD
-
-
Constructor Summary
Constructors Constructor Description CrcCciitCalculator()
CrcCciitCalculator(YConfiguration c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compute(byte[] data, int offset, int length)
Compute the checksum on the data buffer starting at offset and taking into account length bytesint
sizeInBits()
-
-
-
Constructor Detail
-
CrcCciitCalculator
public CrcCciitCalculator()
-
CrcCciitCalculator
public CrcCciitCalculator(YConfiguration c)
-
-
Method Detail
-
compute
public int compute(byte[] data, int offset, int length)
Description copied from interface:ErrorDetectionWordCalculator
Compute the checksum on the data buffer starting at offset and taking into account length bytes- Specified by:
compute
in interfaceErrorDetectionWordCalculator
- Returns:
-
sizeInBits
public int sizeInBits()
- Specified by:
sizeInBits
in interfaceErrorDetectionWordCalculator
- Returns:
- size in bits of the calculated checksum (max 32)
-
-