ProtocolData.h 597 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * ProtocolData.h
  3. *
  4. * Created on: Sep 7, 2017
  5. * Author: guoxs
  6. */
  7. #ifndef _UART_PROTOCOL_DATA_H_
  8. #define _UART_PROTOCOL_DATA_H_
  9. #include <string>
  10. #include "CommDef.h"
  11. /******************** CmdID ***********************/
  12. #define CMDID_POWER 0x0
  13. /**************************************************/
  14. /******************** 错误码 Error code ***********************/
  15. #define ERROR_CODE_CMDID 1
  16. /**************************************************/
  17. typedef struct {
  18. std::string cmd;
  19. std::string state;
  20. std::string msg;
  21. } SProtocolData;
  22. #endif /* _UART_PROTOCOL_DATA_H_ */