123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- #if !defined(DSI_FRAMER_HPP)
- #define DSI_FRAMER_HPP
- #include "types.h"
- #include "dsi_serial.hpp"
- #define DSI_FRAMER_TIMEDOUT (MAX_USHORT-1)
- #define DSI_FRAMER_ERROR MAX_USHORT
- class DSIFramer : public DSISerialCallback
- {
- protected:
- DSISerial *pclSerial;
- public:
-
- DSIFramer();
- DSIFramer(DSISerial *pclSerial_);
-
-
-
-
- virtual ~DSIFramer();
- virtual BOOL WriteMessage(void *pvData_, USHORT usSize_) = 0;
-
-
-
-
-
-
-
-
-
-
- virtual USHORT WaitForMessage(ULONG ulMilliseconds_) = 0;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- virtual USHORT GetMessage(void *pvData_, USHORT usSize_ = 0) = 0;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- };
- #endif
|