From 77a92c3204b95eaf2870605718b9099ab6ece56a Mon Sep 17 00:00:00 2001
From: nancy.liao <huihui.liao@greentest.com.cn>
Date: 周一, 26 5月 2025 08:41:11 +0800
Subject: [PATCH] 匹配时添加了一个当前索引项

---
 libscpi/inc/scpi/types.h |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/libscpi/inc/scpi/types.h b/libscpi/inc/scpi/types.h
index 0e9bc30..c595f68 100644
--- a/libscpi/inc/scpi/types.h
+++ b/libscpi/inc/scpi/types.h
@@ -368,6 +368,20 @@
         SCPI_NUM_NINF,
         SCPI_NUM_AUTO
     };
+
+    enum SCPIRError
+    {
+        RETURN_TRUE = 0,
+        //鍛戒护鏈畾涔�
+        RETURN_UnDefine = -1,
+        //闀垮害婧㈠嚭
+        RETURN_LengthOverFlow = -2,
+        //鍛戒护闈炴硶
+        RETURN_IllegalCommand = -3,
+        //鍥炶皟鍑芥暟娌℃湁鎵惧埌
+        RETURN_NotFind = -4
+
+    };
     typedef enum _scpi_special_number_t scpi_special_number_t;
 
     struct _scpi_choice_def_t {
@@ -420,6 +434,8 @@
         scpi_command_callback_t reset;
     };
 
+
+
     struct _scpi_t {
         //鍛戒护琛ㄧ殑鎸囬拡
         const scpi_command_t * cmdlist;
@@ -427,7 +443,7 @@
         scpi_buffer_t buffer;
         //瑙f瀽鍛戒护鐨勫弬鏁板垪琛�
         scpi_param_list_t param_list;
-        //SCPI鐨勭‖浠舵帴鍙o紝鍒锋柊 閲嶇疆 鍐欏叆 鎶ラ敊
+        //SCPI鐨勫閮ㄦ帴鍙o紝鍒锋柊 閲嶇疆 鍐欏叆 鎶ラ敊
         scpi_interface_t * interface;
         //杈撳嚭鏁版嵁鐨勪釜鏁�
         int_fast16_t output_count;
@@ -455,6 +471,10 @@
         const char * idn[4];
         //鍓╀綑寰呬紶杈撶殑瀛楄妭
         size_t arbitrary_remaining;
+
+        int SCPIerror;
+        //澧炲姞浜嗕竴涓懡浠ゅ垪琛ㄧ殑闀垮害 闃叉闈炴硶瓒婄晫
+        int cmdlistSize;
     };
 
     enum _scpi_array_format_t {

--
Gitblit v1.9.1