diff options
Diffstat (limited to 'source/CEH/ZRpcInterface.h')
-rw-r--r-- | source/CEH/ZRpcInterface.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/source/CEH/ZRpcInterface.h b/source/CEH/ZRpcInterface.h new file mode 100644 index 0000000..3d630c2 --- /dev/null +++ b/source/CEH/ZRpcInterface.h @@ -0,0 +1,38 @@ +/******************************************************************************* + * Copyright (C) ST-Ericsson SA 2011 + * License terms: 3-clause BSD license + ******************************************************************************/ + +#ifndef _ZRPCINTERFACE_H_ +#define _ZRPCINTERFACE_H_ + +#include "CmdResult.h" +#include "LcmInterface.h" +#include "LockLessQueue.h" + +class ZRpcInterface +{ +public: + ZRpcInterface(CmdResult *CmdResult, LcmInterface *LcmInterface); + virtual ~ZRpcInterface(); + + //Circular buffer for received data when using Z-protocol. + LockLessQueue *Z_IndataBuffer; + + //Z-Protocol + ErrorCode_e DoRPC_Z_VersionRequest(); + ErrorCode_e DoRPC_Z_SetBaudrate(int Baudrate); + ErrorCode_e DoRPC_Z_Exit_Z_Protocol(); + + ErrorCode_e DoneRPC_Z_ReadImpl(CommandData_t CmdData); + + ErrorCode_e Do_CEH_Callback(CommandData_t *pCmdData); + +private: + //Payload variable for z-protocol + uint8 *Z_Payload; + CmdResult *cmdResult_; + LcmInterface *lcmInterface_; +}; + +#endif // _ZRPCINTERFACE_H_ |