paulcommoncrc.h
25 lines
| 555 B
| text/x-c
|
CLexer
r62 | #ifndef PAULCOMMONCRC_H | |||
#define PAULCOMMONCRC_H | ||||
#include <QObject> | ||||
class PaulCommonCRC : public QObject | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
explicit PaulCommonCRC(QObject *parent = 0); | ||||
unsigned char calculateDataCRC(char *data, int nbBytes); | ||||
void initLookUpTableForCRC( void ); | ||||
void GetCRCAsTwoBytes(unsigned char* data, unsigned char* crcAsTwoBytes, unsigned int sizeOfData); | ||||
unsigned int Crc_opt( unsigned char D, unsigned int Chk); | ||||
unsigned int lookUpTableForCRC[256]; | ||||
signals: | ||||
public slots: | ||||
}; | ||||
#endif // PAULCOMMONCRC_H | ||||