cCRC Class Reference
#include <crc.h>
List of all members.
Detailed Description
Generic class to calculate a CRC using a given, precalculated table.
Use derived classes like cCRC_DSACON32m with a specifically set CRC table.
Definition at line 80 of file crc.h.
Constructor & Destructor Documentation
constructor: create a new cCRC object and initialize the current value of the CRC checksum. crc_table is the CRC table to use.
Definition at line 94 of file crc.h.
Member Function Documentation
tCRCValue cCRC::AddByte |
( |
unsigned char |
byte |
) |
[inline] |
insert byte into CRC calculation and return the new current CRC checksum
Definition at line 102 of file crc.h.
return the current CRC value
Definition at line 109 of file crc.h.
UInt8 cCRC::GetCRC_HB |
( |
|
) |
[inline] |
return the high byte of the current CRC value
Definition at line 121 of file crc.h.
UInt8 cCRC::GetCRC_LB |
( |
|
) |
[inline] |
return the low byte of the current CRC value
Definition at line 115 of file crc.h.
reset the current CRC value to its initial value and return it;
Definition at line 127 of file crc.h.
Member Data Documentation
table with precalculated CRC values
Definition at line 90 of file crc.h.
current value of the CRC checksum
Definition at line 84 of file crc.h.
initial value of the CRC checksum
Definition at line 87 of file crc.h.
The documentation for this class was generated from the following file: