Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 270 | johboh | 1 | #ifndef __CANPROTOMESSAGE_H |
| 2 | #define __CANPROTOMESSAGE_H |
||
| 3 | |||
| 4 | #include <tchar.h> |
||
| 5 | #include <windows.h> |
||
| 6 | #include "compiler.h" |
||
| 7 | |||
| 8 | class CanProtoMessage |
||
| 9 | { |
||
| 10 | public: |
||
| 11 | CanProtoMessage(); |
||
| 12 | CanProtoMessage(unsigned char funct, unsigned int funcc, unsigned char nid, unsigned int sid, unsigned char data_length, unsigned char data[]); |
||
| 13 | CanProtoMessage(unsigned char bytes[],int startIndex); |
||
| 14 | ~CanProtoMessage(); |
||
| 15 | bool equals(CanProtoMessage *cpm); |
||
| 16 | unsigned char getFunct(void); |
||
| 17 | unsigned int getFuncc(void); |
||
| 18 | unsigned char getNid(void); |
||
| 19 | unsigned int getSid(void); |
||
| 20 | unsigned char getDataLength(void); |
||
| 21 | unsigned char* getData(void); |
||
| 22 | void getBytes(unsigned char bytes[]); |
||
| 23 | protected: |
||
| 24 | unsigned char funct; |
||
| 25 | unsigned int funcc; |
||
| 26 | unsigned char nid; |
||
| 27 | unsigned int sid; |
||
| 28 | unsigned char data_length; |
||
| 29 | unsigned char data[8]; |
||
| 30 | }; |
||
| 31 | |||
| 32 | |||
| 33 | #endif |