12345678910111213141516171819202122232425262728 |
- /*
- * ProtocolData.h
- *
- * Created on: Sep 7, 2017
- * Author: guoxs
- */
- #ifndef _UART_PROTOCOL_DATA_H_
- #define _UART_PROTOCOL_DATA_H_
- #include <string>
- #include "CommDef.h"
- /******************** CmdID ***********************/
- #define CMDID_POWER 0x0
- /**************************************************/
- /******************** 错误码 Error code ***********************/
- #define ERROR_CODE_CMDID 1
- /**************************************************/
- typedef struct {
- std::string cmd;
- std::string state;
- std::string msg;
- } SProtocolData;
- #endif /* _UART_PROTOCOL_DATA_H_ */
|