crc v0.4.2 CRC
This module is used to calculate CRC (Cyclic Redundancy Check) values for binary data. It uses NIF functions written in C to interate over the given binary calculating the CRC checksum value.
Summary
Functions
Calculates a 16-bit CCITT CRC with the given seed, seed defaults to 0xFFFF if one is not given
Calculates a 16-bit CCITT 0x1D0F CRC
Calculates a 16-bit CCITT XMODEM CRC
Calculates an XOR checksum for the given binary
Calculates a 16-bit ANSI CRC checksum for the provided binary
Calculates a 16-bit modbus CRC
Initilizes the module by loading NIFs
Functions
Specs
ccitt_16(binary, number) :: number
Calculates a 16-bit CCITT CRC with the given seed, seed defaults to 0xFFFF if one is not given
Specs
checksum_xor(binary) :: number
Calculates an XOR checksum for the given binary
Specs
crc_16(binary) :: number
Calculates a 16-bit ANSI CRC checksum for the provided binary