Browse Source

update

master
zhaohe 12 months ago
parent
commit
efcd6e0f0e
  1. 20
      transmit_disfection_protocol.hpp

20
transmit_disfection_protocol.hpp

@ -110,6 +110,7 @@ typedef enum {
kfn_heart_ping = 5, // cmd:pingindex, ack:ask_taskinfo_t kfn_heart_ping = 5, // cmd:pingindex, ack:ask_taskinfo_t
kfn_clear_reset_flag = 6, // cmd:taskoff, ack:ask_taskinfo_t kfn_clear_reset_flag = 6, // cmd:taskoff, ack:ask_taskinfo_t
kfn_enable_report = 7, // cmd:enable kfn_enable_report = 7, // cmd:enable
kfn_reset_board = 8, // cmd:
kreport_heatpacket_pong = 50, // cmd:no ack:no report:heatpacket_t kreport_heatpacket_pong = 50, // cmd:no ack:no report:heatpacket_t
kreport_exception_error = 51, // report:error_code,subid kreport_exception_error = 51, // report:error_code,subid
@ -132,8 +133,9 @@ typedef enum {
kfn_pump_ping = 105, // cmd: index, ack:none kfn_pump_ping = 105, // cmd: index, ack:none
kfn_pump_set_ramp = 106, // cmd: index,vs,a1,amx,v1 ack:none kfn_pump_set_ramp = 106, // cmd: index,vs,a1,amx,v1 ack:none
kfn_pump_set_tzw = 107, // cmd: index,timeZeroWait ack:none kfn_pump_set_tzw = 107, // cmd: index,timeZeroWait ack:none
kfn_pump_set_subic_reg = 110, // cmd: index,val ack:none
kfn_pump_get_subic_reg = 111, // cmd: index, ack:val
kfn_pump_set_subic_reg = 110, // cmd: index,val ack:none
kfn_pump_get_subic_reg = 111, // cmd: index, ack:val
kfn_pump_is_run = 112, // cmd: index, ack:run
/*********************************************************************************************************************** /***********************************************************************************************************************
* * * *
@ -153,6 +155,7 @@ typedef enum {
kfn_heater_read_temperature_data = 603, // report:temperature(0.01) kfn_heater_read_temperature_data = 603, // report:temperature(0.01)
kfn_heater_read_ei_adc_raw = 604, // report:temperature(0.01) kfn_heater_read_ei_adc_raw = 604, // report:temperature(0.01)
kfn_heater_read_temperature_data_adc_raw = 605, // report:temperature(0.01) kfn_heater_read_temperature_data_adc_raw = 605, // report:temperature(0.01)
kfn_heater_is_open = 606, // cmd: index, ack:open
/*********************************************************************************************************************** /***********************************************************************************************************************
* H2O2传感器数值上报 * * H2O2传感器数值上报 *
@ -165,7 +168,8 @@ typedef enum {
/*********************************************************************************************************************** /***********************************************************************************************************************
* * * *
***********************************************************************************************************************/ ***********************************************************************************************************************/
kfn_triple_warning_light_ctl = 800, // cmd: r,g,b,warning
kfn_triple_warning_light_ctl = 800, // cmd: r,g,b,warning
kfn_triple_warning_light_read_state = 801, // cmd: none, ack:r,g,b,w
/*********************************************************************************************************************** /***********************************************************************************************************************
* * * *
@ -183,6 +187,7 @@ typedef enum {
kfn_blower_read_ei = 1002, // cmd: electric_current(ma) kfn_blower_read_ei = 1002, // cmd: electric_current(ma)
kfn_blower_is_error = 1003, // cmd: ack:{error} kfn_blower_is_error = 1003, // cmd: ack:{error}
kfn_blower_read_ei_adc_raw = 1004, // cmd: electric_current(ma) kfn_blower_read_ei_adc_raw = 1004, // cmd: electric_current(ma)
kfn_blower_is_open = 1005, // cmd: index, ack:open
/*********************************************************************************************************************** /***********************************************************************************************************************
* * * *
@ -191,6 +196,7 @@ typedef enum {
kfn_air_compressor_ctrl_safe_valve = 1101, // cmd: valve_state kfn_air_compressor_ctrl_safe_valve = 1101, // cmd: valve_state
kfn_air_compressor_read_ei = 1102, // report:electric_current(ma) kfn_air_compressor_read_ei = 1102, // report:electric_current(ma)
kfn_air_compressor_read_ei_adc_raw = 1103, // report:electric_current(ma) kfn_air_compressor_read_ei_adc_raw = 1103, // report:electric_current(ma)
kfn_air_compressor_is_open = 1104, // cmd: index, ack:open
/*********************************************************************************************************************** /***********************************************************************************************************************
* * * *
@ -220,10 +226,12 @@ typedef enum {
/*********************************************************************************************************************** /***********************************************************************************************************************
* * * *
***********************************************************************************************************************/ ***********************************************************************************************************************/
kfn_air_tightness_test_close_off_ch = 1500, // 气密性测试-封闭通道
kfn_air_tightness_test_release_ch = 1501, // 气密性测试-释放通道
kfn_air_tightness_test_cutoff_ch = 1500, // 气密性测试-封闭通道
kfn_air_tightness_test_release_ch = 1501, // 气密性测试-释放通道
kfn_air_tightness_test_is_cutoff = 1502, // 气密性测试-封闭通道
kfn_ext_ch_selector_set_ch = 1600, // 外部通道选择器设置通道 kfn_ext_ch_selector_set_ch = 1600, // 外部通道选择器设置通道
kfn_ext_ch_selector_get_ch = 1601, // 读取当前通道
} cmd_t; } cmd_t;
@ -300,7 +308,7 @@ typedef struct {
uint16_t humid; // %RH * 10 uint16_t humid; // %RH * 10
uint16_t temp; // °C * 10 uint16_t temp; // °C * 10
uint16_t saturation; // %RS * 10 uint16_t saturation; // %RS * 10
uint16_t h2o2adc; // adc_val
uint16_t h2o2adc; // adc_val
} report_h2o2_data_t; } report_h2o2_data_t;
typedef struct { typedef struct {

Loading…
Cancel
Save