Package org.yamcs.tctm.ccsds.error
Class ProximityCrc32
java.lang.Object
org.yamcs.tctm.ccsds.error.ProximityCrc32
- All Implemented Interfaces:
ErrorDetectionWordCalculator
CRC-32 error detection code as specified in
CCSDS 211.0-B-5 PROXIMITY-1 SPACE LINK PROTOCOL— DATA LINK LAYER
also used in USLP frames CCSDS 732.1-B-1
WARNING: we did not find an alternative implementation to compare with!
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compute
(byte[] data, int offset, int length) Compute the checksum on the data buffer starting at offset and taking into account length bytesint
-
Constructor Details
-
ProximityCrc32
public ProximityCrc32()
-
-
Method Details
-
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)
-