tcpackettosend.h
28 lines
| 644 B
| text/x-c
|
CLexer
/ parameterdump / tcpackettosend.h
r48 | #ifndef TCPACKETTOSEND_H | |||
#define TCPACKETTOSEND_H | ||||
#include <QObject> | ||||
r50 | #include "parameterdump_global.h" | |||
r48 | #include <TC_types.h> | |||
r50 | class PARAMETERDUMPSHARED_EXPORT TCPacketToSend : public QObject | |||
r48 | { | |||
Q_OBJECT | ||||
public: | ||||
explicit TCPacketToSend(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 // TCPACKETTOSEND_H | ||||