Creates an instance of the CRC (Cyclic Redundancy Check) class.
The name of the CRC algorithm.
The width of the CRC in bits.
The polynomial used for the CRC calculation.
The initial value for the CRC calculation.
The value to XOR with the final CRC value.
Whether the input bytes should be reflected.
Whether the result should be reflected.
Static
defaultsReturns a list of default CRC configurations.
The list includes various CRC algorithms with their respective parameters:
An array of CRC configurations.
CRC (Cyclic Redundancy Check) class for computing various CRC algorithms.
This class provides a comprehensive implementation of CRC calculation algorithms commonly used in automotive diagnostics, communication protocols, and data integrity verification. It supports 8-bit, 16-bit, and 32-bit CRC calculations with configurable parameters including polynomial, initial value, final XOR value, and reflection settings.
The class includes a comprehensive set of predefined CRC algorithms and allows custom CRC configurations for specific use cases.
Example