From 11f2f2e329ef404d0e9c022cb2f9fbbb45bae285 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: 周日, 27 4月 2025 17:33:31 +0800 Subject: [PATCH] 完成了SCPI命令语法分析器的完整规则 --- 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