diff options
Diffstat (limited to 'K2LABI/IPC/IPCFlowDecoder.h')
-rw-r--r-- | K2LABI/IPC/IPCFlowDecoder.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/K2LABI/IPC/IPCFlowDecoder.h b/K2LABI/IPC/IPCFlowDecoder.h new file mode 100644 index 0000000..d099275 --- /dev/null +++ b/K2LABI/IPC/IPCFlowDecoder.h @@ -0,0 +1,28 @@ +#ifndef __IPC_FLOW_DECODER_H__ +#define __IPC_FLOW_DECODER_H__ + +#include "FlowDecoder.h" +#include "K2LIPC.h" + +using namespace K2L::Automotive::IPC; +class CIpc; + +class CIPCFlowDecoder : public CFlowDecoder +{ +public: + CIPCFlowDecoder(CIpc* pIpc); + ~CIPCFlowDecoder(); + virtual void Reset(); + +protected: + eStateRetVal ReceiveHeader(); + eStateRetVal ReceivePacket(); + +private: + BYTE* m_pPacket; + unsigned long m_ReceiveIndex; + int m_ValidPacketCount; + CIpc* m_pIpc; +}; + +#endif // __IPC_FLOW_DECODER_H__ |