Template Struct CRC::Parameters

Nested Relationships

This struct is a nested type of Class CRC.

Struct Documentation

template<typename CRCType, crcpp_uint16 CRCWidth>
struct Parameters

CRC parameters.

Public Functions

inline Table<CRCType, CRCWidth> MakeTable() const

Returns a CRC lookup table construct using these CRC parameters.

Note

This function primarily exists to allow use of the auto keyword instead of instantiating a table directly, since template parameters are not inferred in constructors.

Template Parameters:
  • CRCType – Integer type for storing the CRC result

  • CRCWidth – Number of bits in the CRC

Returns:

CRC lookup table

Public Members

CRCType polynomial

CRC polynomial.

CRCType initialValue

Initial CRC value.

CRCType finalXOR

Value to XOR with the final CRC.

bool reflectInput

true to reflect all input bytes

bool reflectOutput

true to reflect the output CRC (reflection occurs before the final XOR) // NOLINT