gccDppConsole Test C++ SDK  20170920
DPP C++ Console Demonstration
DeviceIO/SendCommand.h
Go to the documentation of this file.
00001 #pragma once
00002 #include "DppConst.h"
00003 #include "DP5Protocol.h"
00004 #include "AsciiCmdUtilities.h"
00005 
00006 typedef struct _CONFIG_OPTIONS
00007 {
00008     bool PC5_PRESENT;                           
00009     int DppType;                                        
00010         string HwCfgDP5Out;                             
00011         bool SendCoarseFineGain;                
00012         bool isDP5_RevDxGains;                  
00013         unsigned char DPP_ECO;                  
00014 } CONFIG_OPTIONS;
00015 
00023 class CSendCommand
00024 {
00025 public:
00026         CSendCommand(void);
00027         ~CSendCommand(void);
00028     CAsciiCmdUtilities AsciiCmdUtil;
00029 
00031         bool TestPacketCkSumOK(unsigned char Data[]);
00033         bool DP5_CMD(unsigned char Buffer[], TRANSMIT_PACKET_TYPE XmtCmd);
00035         bool DP5_CMD_Config(unsigned char Buffer[], TRANSMIT_PACKET_TYPE XmtCmd, CONFIG_OPTIONS CfgOptions);
00037         bool DP5_CMD_Data(unsigned char Buffer[], TRANSMIT_PACKET_TYPE XmtCmd, unsigned char DataOut[]);
00039         bool POUT_Buffer(Packet_Out POUT, unsigned char Buffer[]);
00040 };
00041