This commit is contained in:
小马_666 2025-05-28 16:28:53 +08:00
parent e59352f078
commit 1b566c8281
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@
#define CMD_TYPE_INSTRUCTION_REPLY 0x14 // 命令类型 - 指令下发回复 (设备->平台) #define CMD_TYPE_INSTRUCTION_REPLY 0x14 // 命令类型 - 指令下发回复 (设备->平台)
#define CMD_TYPE_TIME_CALIBRATION 0x15 // 命令类型 - 时间校准 (设备->平台) #define CMD_TYPE_TIME_CALIBRATION 0x15 // 命令类型 - 时间校准 (设备->平台)
#define PROTOCOL_VERSION 0x11 /*协议版本*/ #define PROTOCOL_VERSION 0x42 /*协议版本*/
/*数据序列号*/ /*数据序列号*/
#define DATA_SERIAL_NUM 0x0001 // 1 #define DATA_SERIAL_NUM 0x0001 // 1
@ -168,6 +168,7 @@ struct __attribute__ ((packed)) valve_t
uint32_t valve_in_pressure; uint32_t valve_in_pressure;
uint32_t valve_out_pressure; uint32_t valve_out_pressure;
uint32_t valve_atm_pressure; uint32_t valve_atm_pressure;
uint8_t valve_voltage;//阀门电池电压
}; };
struct __attribute__ ((packed)) DataBody struct __attribute__ ((packed)) DataBody