CrcStandard enum

Cataloged CRC parameter sets and "123456789" check values.

Inheritance
Available extensions

Values

crc8Smbus → const CrcStandard

CRC-8/SMBUS.

const CrcStandard(width: 8, polynomialExponents: [8, 2, 1, 0], check: 0xf4, residue: 0)
crc16Arc → const CrcStandard

CRC-16/ARC.

const CrcStandard(width: 16, polynomialExponents: [16, 15, 2, 0], reflectInput: true, reflectOutput: true, check: 0xbb3d, residue: 0)
crc16Ibm3740 → const CrcStandard

CRC-16/IBM-3740.

const CrcStandard(width: 16, polynomialExponents: [16, 12, 5, 0], initialValue: 0xffff, check: 0x29b1, residue: 0)
crc32IsoHdlc → const CrcStandard

CRC-32/ISO-HDLC.

const CrcStandard(width: 32, polynomialExponents: [32, 26, 23, 22, 16, 12, 11, 10, 8, 7, 5, 4, 2, 1, 0], initialValue: 0xffffffff, reflectInput: true, reflectOutput: true, finalXor: 0xffffffff, check:…

Properties

check → int
CRC of the ASCII bytes "123456789".
final
finalXor → int
Value XORed with the oriented final register.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
initialValue → int
Initial register value.
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
polynomial → BinaryPolynomial
The full characteristic polynomial, including its leading coefficient.
no setter
reflectInput → bool
Whether each input beat is consumed least-significant bit first.
final
reflectOutput → bool
Whether the final register orientation is reflected.
final
residue → int
Standard residue after processing a valid codeword.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
Width of the CRC register.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<CrcStandard>
A constant List of the values in this enum, in order of their declaration.