Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of PololuQik2 by
CRC7 Class Reference
This is a CRC7 implementation for checking validity of messages. More...
#include <CRC7.h>
Public Member Functions | |
CRC7 () | |
Default constructor. | |
unsigned char | CRC (unsigned char message[], unsigned int length) |
this method will generate the CRC7 checksum for the supplied message. |
Detailed Description
This is a CRC7 implementation for checking validity of messages.
It will compute a checksum which can be used to determine if a message has been recieved unaltered. This is used particularly over wireless tranmission or noisy serial lines.
This implements a stored CRC table. This will taken up 256 bytes of RAM when the object is instantiated. The reason for using a stored CRC table is speed. This is a compromise between speed and storage spaces.
This could possibly be static object.
Definition at line 27 of file CRC7.h.
Constructor & Destructor Documentation
CRC7 | ( | ) |
Member Function Documentation
unsigned char CRC | ( | unsigned char | message[], |
unsigned int | length | ||
) |
Generated on Fri Jul 15 2022 23:53:36 by
