00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef ARSICKPACKET_H
00027 #define ARSICKPACKET_H
00028
00029 #include "ariaTypedefs.h"
00030 #include "ArBasePacket.h"
00031 #include "ariaUtil.h"
00032
00034
00043 class ArSickPacket: public ArBasePacket
00044 {
00045 public:
00047 AREXPORT ArSickPacket(unsigned char sendingAddress = 0);
00049 AREXPORT virtual ~ArSickPacket();
00050
00052 AREXPORT void setSendingAddress(unsigned char address);
00053
00055 AREXPORT unsigned char getSendingAddress(void);
00056
00058 AREXPORT unsigned char getReceivedAddress(void);
00059
00061 AREXPORT bool verifyCRC(void);
00062
00064 AREXPORT ArTypes::UByte getID(void);
00065
00067 AREXPORT ArTypes::Byte2 calcCRC(void);
00068
00069
00070 AREXPORT virtual void finalizePacket(void);
00071 AREXPORT virtual void resetRead(void);
00072
00074 AREXPORT ArTime getTimeReceived(void);
00076 AREXPORT void setTimeReceived(ArTime timeReceived);
00077
00079 AREXPORT virtual void duplicatePacket(ArSickPacket *packet);
00080 protected:
00081 ArTime myTimeReceived;
00082 unsigned char mySendingAddress;
00083 };
00084
00085 #endif // ARSICKPACKET_H