tcpackettosend.h
27 lines
| 583 B
| text/x-c
|
CLexer
/ parameterdump / tcpackettosend.h
r48 | #ifndef TCPACKETTOSEND_H | |||
#define TCPACKETTOSEND_H | ||||
#include <QObject> | ||||
#include <TC_types.h> | ||||
class TCPacketToSend : public QObject | ||||
{ | ||||
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 | ||||