Sin( x y ) Image Border.

GENERATING AND CHECKING CRC CODES

Sean E. O'Connor


Overview

C++ software for a program which generates and checks CRC (Cyclic Redundancy Check) codes.

Features:

Drawbacks:

References: See my mathematical tutorial on CRC definition and properties. I also have an example generated by Mathematica showing CRC encoding and decoding. Ross Williams has description of various CRC implemenations.

Setup and Run

On my Windows XP PC system, I use the free Bloodshed C++ compiler which is an IDE based on the GNU Cygwin toolset which I also use for command line compiling and debugging. I also use the Microsoft C++ compiler . For details on the C++ language, see Bjarne Stroustrup's Page and C++ FAQ Lite and the Standard Template Library.

Download Source Code

Source code is distributed under the terms of the GNU General Public License The current version is 2.1

Click on the symbol Compact disk icon for source code download. to view and download the source files below.
Compact disk icon for source code download. Download crcCode.h This is the CRC code class.
Compact disk icon for source code download. Download crcCode.cpp Member functions of the CRC code class.
Compact disk icon for source code download. Download shiftRegister.h This is the class defining a binary linear feedback shift register.
Compact disk icon for source code download. Download shiftRegister.cpp Member functions of the shift register class.
Compact disk icon for source code download. Download testCRC.cpp Main unit test program.
Compact disk icon for source code download. Download makefile Makefile for Cygwin.

On PC's with Bloodshed C++ or Microsoft Visual C++, create a new console application and add all source files to your project, then build them.

On a Unix system, or with Cygwin, download and modify the makefile. Compile the program which runs in a command window. --- my thanks to Thomas Huber for this information.


Copyright © 1986-2008 by Sean Erik O'Connor. All Rights Reserved.     last updated 01 Jan 08.