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, 20 insertions(+), 2 deletions(-) diff --git a/libscpi/inc/scpi/types.h b/libscpi/inc/scpi/types.h index 1212ff6..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; @@ -455,8 +471,10 @@ const char * idn[4]; //鍓╀綑寰呬紶杈撶殑瀛楄妭 size_t arbitrary_remaining; - //output涓鸿嚜澧炲瓧娈碉紝淇濆瓨杩斿洖缁撴灉,鎻愪緵缁欑▼搴忓搷搴斿唴閮ㄨ緭鍑� - char outPut[1024]; + + int SCPIerror; + //澧炲姞浜嗕竴涓懡浠ゅ垪琛ㄧ殑闀垮害 闃叉闈炴硶瓒婄晫 + int cmdlistSize; }; enum _scpi_array_format_t { -- Gitblit v1.9.1