Package org.yamcs.tctm
Interface ErrorDetectionWordCalculator
- All Known Implementing Classes:
CrcCciitCalculator,Iso16CrcCalculator,ProximityCrc32,Running16BitChecksumCalculator
public interface ErrorDetectionWordCalculator
Computes the checksum inside the CCSDS packet
-
Method Summary
Modifier and TypeMethodDescriptionintcompute(byte[] data, int offset, int length) Compute the checksum on the data buffer starting at offset and taking into account length bytesint
-
Method Details
-
compute
int compute(byte[] data, int offset, int length) Compute the checksum on the data buffer starting at offset and taking into account length bytes- Parameters:
data-offset-length-- Returns:
-
sizeInBits
int sizeInBits()- Returns:
- size in bits of the calculated checksum (max 32)
-