summaryrefslogtreecommitdiffstats
path: root/K2LABI/IPC/IPCFlowDecoder.h
blob: d099275debf1d2a05b615550d0f91760f198e1cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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__