From 46557304e95bb1713f8eb2df3609e7171c5d3108 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 22 Jun 2024 20:48:51 +0800 Subject: [PATCH] update --- api/apibasic/reg_index.hpp | 7 +++++++ api/zi_plate_code_scaner_module.hpp | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/api/apibasic/reg_index.hpp b/api/apibasic/reg_index.hpp index 6348ec0..f3162c1 100644 --- a/api/apibasic/reg_index.hpp +++ b/api/apibasic/reg_index.hpp @@ -184,6 +184,13 @@ typedef enum { /*********************************************************************************************************************** * BOARD * ***********************************************************************************************************************/ + + kreg_plate_code_scaner_laster_gain = REG_INDEX(103, 0, 1), + kreg_plate_code_scaner_scan_gain = REG_INDEX(103, 0, 2), + kreg_plate_code_scaner_start_scan_pos = REG_INDEX(103, 0, 3), + kreg_plate_code_scaner_scan_step_interval = REG_INDEX(103, 0, 4), + kreg_plate_code_scaner_scan_point_num = REG_INDEX(103, 0, 5), + } reg_index_t; typedef struct { diff --git a/api/zi_plate_code_scaner_module.hpp b/api/zi_plate_code_scaner_module.hpp index 4ba3942..b4ef191 100644 --- a/api/zi_plate_code_scaner_module.hpp +++ b/api/zi_plate_code_scaner_module.hpp @@ -11,9 +11,10 @@ using namespace std; class ZI_PlateCodeScanerModule { public: virtual ~ZI_PlateCodeScanerModule(){}; - virtual int32_t plate_code_scaner_start_scan() = 0; + virtual int32_t plate_code_scaner_start_scan(int32_t startpos) = 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_read_code(int32_t* code) = 0; virtual int32_t plate_code_scaner_adc_readraw(int32_t* val) = 0; virtual int32_t plate_code_scaner_open_laser() = 0;