From 8a0ad09e70d555974cd319e6157b09f857960867 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: 周三, 23 4月 2025 11:31:35 +0800 Subject: [PATCH] 通用的命令解析完成 如<[:MEASure]|[SOURCE]><[:ARM]|[TRigger]>[:DC] 以及[:MEASure][:DC],当前还没有区分必填项和可选性,输入参数将严格按照:的参数个数进行解析 --- examples/common/scpi-def.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/examples/common/scpi-def.h b/examples/common/scpi-def.h index 3b0acca..471c9a9 100644 --- a/examples/common/scpi-def.h +++ b/examples/common/scpi-def.h @@ -28,11 +28,16 @@ #ifndef __SCPI_DEF_H_ #define __SCPI_DEF_H_ +#ifdef __cplusplus +extern "C" { +#endif #include "scpi/scpi.h" #define SCPI_INPUT_BUFFER_LENGTH 256 #define SCPI_ERROR_QUEUE_SIZE 17 + + #define SCPI_IDN1 "MANUFACTURE" #define SCPI_IDN2 "INSTR2013" #define SCPI_IDN3 NULL @@ -53,5 +58,8 @@ scpi_result_t SCPI_SystemCommTcpipControlQ(scpi_t * context); +#ifdef __cplusplus +} +#endif #endif /* __SCPI_DEF_H_ */ -- Gitblit v1.9.1