A derived CRC class that uses a CRC table and initial value suitable for protecing the binary communication with SDH via RS232. More...
#include <crc.h>
Public Member Functions | |
cCRC_SDH (void) | |
constructor to create a cCRC object suitable for checksumming the binary communication with SDH More... | |
![]() | |
cCRC_DSACON32m (void) | |
constructor to create a cCRC object suitable for checksumming the communication with a DSACON32m tactile sensor controller More... | |
![]() | |
tCRCValue | AddByte (unsigned char byte) |
insert byte into CRC calculation and return the new current CRC checksum More... | |
tCRCValue | AddBytes (unsigned char *bytes, int nb_bytes) |
insert nb_bytes from bytes into CRC calculation and return the new current CRC checksum More... | |
cCRC (tCRCValue const *_crc_table, tCRCValue _initial_value) | |
constructor: create a new cCRC object and initialize the current value of the CRC checksum. crc_table is the CRC table to use. More... | |
tCRCValue | GetCRC () |
return the current CRC value More... | |
UInt8 | GetCRC_HB () |
return the high byte of the current CRC value More... | |
UInt8 | GetCRC_LB () |
return the low byte of the current CRC value More... | |
tCRCValue | Reset () |
reset the current CRC value to its initial value and return it; More... | |
Additional Inherited Members | |
![]() | |
tCRCValue const * | crc_table |
table with precalculated CRC values More... | |
tCRCValue | current_crc |
current value of the CRC checksum More... | |
tCRCValue | initial_value |
initial value of the CRC checksum More... | |
![]() | |
static const tCRCValue | crc_table_dsacon32m [256] |
the CRC table used by the DSACON32m controller More... | |
A derived CRC class that uses a CRC table and initial value suitable for protecing the binary communication with SDH via RS232.
(for now we use the same CRC as for DSACON32m, but we use this separate class to simplify future changes).
|
inline |