CrcParams
CrcParams =
object
Defined in: checksum/crc-types.ts:5
A parametrised CRC algorithm, in the Rocksoft/CRC-RevEng catalogue’s own terms — https://reveng.sourceforge.io/crc-catalogue/all.htm.
Properties
Section titled “Properties”
readonlyinit:number
Defined in: checksum/crc-types.ts:11
The register’s value before the first byte is read.
polynomial
Section titled “polynomial”
readonlypolynomial:number
Defined in: checksum/crc-types.ts:9
The generating polynomial, MSB-first, with the top (implicit) bit omitted.
readonlyrefIn:boolean
Defined in: checksum/crc-types.ts:13
true if each input byte is consumed least-significant-bit first.
refOut
Section titled “refOut”
readonlyrefOut:boolean
Defined in: checksum/crc-types.ts:15
true if the register is bit-reversed before xorOut is applied.
readonlywidth:8|16|32
Defined in: checksum/crc-types.ts:7
Register width in bits.
xorOut
Section titled “xorOut”
readonlyxorOut:number
Defined in: checksum/crc-types.ts:17
XORed into the register after every byte has been read and any refOut.