nancy.liao
2025-04-16 a6dedec1adeeb974bceb1930cb63178d6165c7f6
libscpi/inc/scpi/scpi-def.h
@@ -28,16 +28,24 @@
#ifndef __SCPI_DEF_H_
#define __SCPI_DEF_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "scpi/scpi.h"
/*
    SCPI_IDN1
    SCPI_IDN2
    SCPI_IDN3
    SCPI_IDN4
    这几个参数是用来注册时表示信息
    对应*IDN? 查询命令的返回内容(设备标识查询命令)
    具体内容为(制造商,型号,序列号,固件版本)
    如果使用CPP版本的话使用scpi-def.h 和scpi-def.cpp
    这个提供了CPP版本的支持,.c的版本为旧标准版版本
*/
#define SCPI_INPUT_BUFFER_LENGTH 256
#define SCPI_ERROR_QUEUE_SIZE 17
#define SCPI_IDN1 "MANUFACTURE"
#define SCPI_IDN2 "INSTR2013"
#define SCPI_IDN3 NULL
@@ -58,8 +66,5 @@
scpi_result_t SCPI_SystemCommTcpipControlQ(scpi_t * context);
#ifdef __cplusplus
}
#endif
#endif /* __SCPI_DEF_H_ */