C++ software for a program which generates and checks CRC (Cyclic Redundancy Check) codes.
- Can work with any size CRC code up to 32 bits.
- Well commented source code, easy to extend.
- Not optimized for speed yet --- I'm working a table lookup method.
Ross Williams has description of various CRC implementations.
Download Source Code
Source code Version 2.1 is distributed under the terms of the GNU General Public License.
|crcCode.h||Header file for CRC.||View Download|
|crcCode.cpp||CRC code.||View Download|
|shiftRegister.h||Header file for shift register.||View Download|
|View shiftRegister.cpp||Implementation for shift register.||View Download|
|View dataTypes.h||Data types for the 32-bit parity bits and syndrome bits.||View Download|
|View testCRC.cpp||Main unit test program.||View Download|
|makefile||Makefile for Cygwin.||View Download|
Install and Run
On Mac OS X, I use the Xcode IDE; on a Windows platforms, I use the GNU Cygwin toolset for command line compiling and debugging; and on Unix systems, including Mac OS X, I use the built-in gcc compiler and gdb debugger. For online C++ language tutorials, books and references, see links to C++ documentation.