Skip to content

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.

readonly init: number

Defined in: checksum/crc-types.ts:11

The register’s value before the first byte is read.


readonly polynomial: number

Defined in: checksum/crc-types.ts:9

The generating polynomial, MSB-first, with the top (implicit) bit omitted.


readonly refIn: boolean

Defined in: checksum/crc-types.ts:13

true if each input byte is consumed least-significant-bit first.


readonly refOut: boolean

Defined in: checksum/crc-types.ts:15

true if the register is bit-reversed before xorOut is applied.


readonly width: 8 | 16 | 32

Defined in: checksum/crc-types.ts:7

Register width in bits.


readonly xorOut: number

Defined in: checksum/crc-types.ts:17

XORed into the register after every byte has been read and any refOut.