From 94d8564f2a3d6befcdbcc41a5ec663270cf1eafd Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 22 Jun 2024 19:36:19 +0800 Subject: [PATCH] update --- api/apibasic/cmdid.hpp | 9 +++++++++ api/apibasic/module_type_index.hpp | 1 + api/zi_plate_code_scaner_module.hpp | 20 ++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 api/zi_plate_code_scaner_module.hpp diff --git a/api/apibasic/cmdid.hpp b/api/apibasic/cmdid.hpp index a909e5c..34ac91f 100644 --- a/api/apibasic/cmdid.hpp +++ b/api/apibasic/cmdid.hpp @@ -149,6 +149,15 @@ typedef enum { kpipette_get_sensor_sample_data_num = CMDID(0x72, 23), // para:{} , ack:{num} kpipette_sensor_sample_data_report = CMDID(0x72, 50), // val{regindex, oldval, toval} + /*********************************************************************************************************************** + * 板夹仓板夹扫码 * + ***********************************************************************************************************************/ + + kplate_clamp_case_start_scan = CMDID(0x73, 1), // para:{}, ack:{} + kplate_clamp_case_stop_scan = CMDID(0x73, 2), // para:{}, ack:{} + kplate_clamp_case_readcode = CMDID(0x73, 3), // para:{}, ack:{} + + } cmdid_t; typedef struct { diff --git a/api/apibasic/module_type_index.hpp b/api/apibasic/module_type_index.hpp index 5c918f2..fbd9ef4 100644 --- a/api/apibasic/module_type_index.hpp +++ b/api/apibasic/module_type_index.hpp @@ -17,5 +17,6 @@ typedef enum { kmini_servo_motor_module = 11, // 舵机 kboard = 12, // 舵机 ka8000_idcard_reader = 13, // ka8000_idcard_reader + ka8000_plate_code_scaner = 14, // ka8000_plate_code_scaner } module_type_t; } \ No newline at end of file diff --git a/api/zi_plate_code_scaner_module.hpp b/api/zi_plate_code_scaner_module.hpp new file mode 100644 index 0000000..b2f4f1f --- /dev/null +++ b/api/zi_plate_code_scaner_module.hpp @@ -0,0 +1,20 @@ +#pragma once +#include + +#include + +#include "apibasic/basic.hpp" + +namespace iflytop { +using namespace std; + +class ZIPlateCodeScanerModule { + public: + virtual ~ZIPlateCodeScanerModule() {} + +// virtual int32_t plate_code +// virtual int32_t pipette_ctrl_put_tip() = 0; +// virtual int32_t pipette_ctrl_move_to_ul(int32_t ul) = 0; + +}; +} // namespace iflytop