| | |
| | | |
| | | #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_IDN1 "MANUFACTURE\n" |
| | | #define SCPI_IDN2 "INSTR2013\n" |
| | | #define SCPI_IDN3 NULL |
| | | #define SCPI_IDN4 "01-02" |
| | | #define SCPI_IDN4 "01-02\n" |
| | | |
| | | extern const scpi_command_t scpi_commands[]; |
| | | extern scpi_interface_t scpi_interface; |
| | |
| | | |
| | | scpi_result_t SCPI_SystemCommTcpipControlQ(scpi_t * context); |
| | | |
| | | #ifdef __cplusplus |
| | | } |
| | | #endif |
| | | #endif /* __SCPI_DEF_H_ */ |
| | | |