##// END OF EJS Templates
hk display modification
hk display modification

File last commit:

r69:d8815b251eb0 default
r77:8906e9080c98 default
Show More
paulcommoncrc.h
25 lines | 555 B | text/x-c | CLexer
#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