Class Crc16Tms37157

extends Crc
CRC-16/TMS37157 checksum state.
Note
Crccalc.com lists the initial state of the CRC as 0x89EC, whereas we use the initial value of 0x3791, the bit reversed value. This value is the one that gives the correct result (matching crccalc.com's check) when run with our code.

Class summary


Constructors

Methods

add data/Data -> none
Variant of add data from to.

add data/Data from/int -> none
Variant of add data from to.

add data/Data from/int to/int -> none
See super.

See super.
Returns the checksum as a width/8 element byte array in the endian order that corresponds to the constructor used.

Returns the checksum as an integer.

operator == other/any -> bool

Stringifies this object.
Inheritance
Objects that need a human-friendly string representation should overwrite this method. The default string is based on the internal class-ID.

Fields

inherited

inherited

inherited

inherited