# Classes to calculate crcs and checksums from binary data

Resets the instance state to the initial value. This is not required for a just created instance. Return final check value. Classes to calculate crcs and checksums from binary data internal state is not modified by this so further data can be processed afterwards. Return final checksum value as bytes. Returns current intermediate value. Note that in general final must be used to get the a final value. CrccheckError — if result is not as expected.

Calculates bit checksum by adding the input bytes in groups of four. Input data length must be a multiple of four, otherwise the last bytes are not used. Calculates bit checksum by adding the input bytes in groups of two. Input data classes to calculate crcs and checksums from binary data must be a multiple of two, otherwise the last byte is not used.

Calculates bit checksum by XOR-ing the input bytes in groups of four. Calculates bit checksum by XOR-ing the input bytes in groups of two. For the class names simply remove all dashes and slashes from the above names and apply CamelCase, e.

Other CRC can be calculated by using the general class crccheck. Crc by providing all required CRC parameters. Navigation index modules next previous crccheck 0.

Table Of Contents crccheck package Submodules crccheck. Created using Sphinx 1. If None then the default value for the class is used. If None then the default initial value for the class is used.

Must be positive and a multiple of 8. This is to calculate the CRC like least-significant bit first systems will do it. This value is used for the selftest method to verify proper operation.