Skip to content

building39/crc16_nif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Erlang NIF for generating CRC-16 (polynomial 0x8005).

This NIF requires the very fine CRC code (in C) written by Michael Barr. See http://www.barrgroup.com/Embedded-Systems/How-To/CRC-Calculation-C-Code for more information. The code can be downloaded from here.

Note: You can change the CRC standard used by changing the macro near the top of the crc.h file - this NIF wants CRC16 (polynomial 0x8005), and the crc.h file included here has been changed accordingly. The original code uses the CRC_CCITT standard.

To build, simply run make.

About

A CRC-16 NIF for erlang.

Resources

License

Stars

Watchers

Forks

Packages

No packages published