Browse Source

update

disinfection_machine
zhaohe 1 year ago
parent
commit
7c49f67b53
  1. 20
      src/iflytop/components/zcanreceiver/zcanhost.hpp

20
src/iflytop/components/zcanreceiver/zcanhost.hpp

@ -7,31 +7,13 @@
#include "cmd.hpp"
#include "iflytop/core/core.hpp"
#include "zcanreceiverhost.hpp"
#include "transmit_disinfection_protocol_v1/transmit_disinfection_protocol_v1.hpp"
namespace iflytop {
using namespace std;
using namespace zcr;
using namespace core;
typedef enum {
kcmd_ping = 0,
kcmd_read_io = 1,
kcmd_set_io = 2,
kcmd_readadc_raw = 3,
kcmd_m211887_operation = 1000, // 维萨拉压力传感器
kcmd_read_presure_sensor = 1001,
kcmd_triple_warning_light_ctl = 1002,
kcmd_high_power_electrical_ctl = 1003,
kcmd_peristaltic_pump_ctl = 1004,
kcmd_read_huacheng_pressure_sensor = 1005,
kcmd_proportional_set_valve = 1006, // 设置比例阀 {4:valveId,4:valveValue}
kcmd_air_compressor_ch_select = 1007, // 空压机通道选择 {4:val}
kcmd_air_compressor_valve1_set = 1008, // 空压机阀门1控制 {4:val}
kcmd_air_compressor_valve2_set = 1009, // 空压机阀门2控制 {4:val}
kcmd_air_compressor_read_pressure = 1010, // 空压机阀读取压力 {}{4:val}
kcmd_proportional_read_state = 1011, // 1:正忙,0:空闲 {}{4:value}
} CmdID_t;
class ZCanHost {
ENABLE_LOGGER(ZCanHost);

Loading…
Cancel
Save