From a9c9825ce2fc568483ffbaa36529af801b66fff4 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 22 Jun 2024 19:56:16 +0800 Subject: [PATCH] update --- api/api.hpp | 4 +++- api/zi_plate_code_scaner_module.hpp | 14 ++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/api/api.hpp b/api/api.hpp index 7a780d5..ec3657b 100644 --- a/api/api.hpp +++ b/api/api.hpp @@ -25,4 +25,6 @@ // #include "zi_water_cooling_temperature_controler.hpp" // -#include "zi_a8000_idcard_reader.hpp" \ No newline at end of file +#include "zi_a8000_idcard_reader.hpp" +// +#include "zi_plate_code_scaner_module.hpp" \ No newline at end of file diff --git a/api/zi_plate_code_scaner_module.hpp b/api/zi_plate_code_scaner_module.hpp index b2f4f1f..4ba3942 100644 --- a/api/zi_plate_code_scaner_module.hpp +++ b/api/zi_plate_code_scaner_module.hpp @@ -8,13 +8,15 @@ namespace iflytop { using namespace std; -class ZIPlateCodeScanerModule { +class ZI_PlateCodeScanerModule { 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; + virtual ~ZI_PlateCodeScanerModule(){}; + virtual int32_t plate_code_scaner_start_scan() = 0; + virtual int32_t plate_code_scaner_read_result(int32_t packetIndex, uint8_t* data, int32_t* len) = 0; + virtual int32_t plate_code_scaner_read_result_packet_num(int32_t* packetNum) = 0; + virtual int32_t plate_code_scaner_adc_readraw(int32_t* val) = 0; + virtual int32_t plate_code_scaner_open_laser() = 0; + virtual int32_t plate_code_scaner_close_laser() = 0; }; } // namespace iflytop