Source codes are devided into few files to provide better portability to other systems.
libscpi/src/ - main source code directory
parser.c - provides the core parser librarylexer.c - provides identification of keywoards and data typeserror.c - provides basic error handling (error queue of the instrument)ieee488.c - provides basic implementation of IEEE488.2 mandatory commandsminimal.c - provides basic implementation of SCPI mandatory commandsutils.c - provides string handling routines and conversion routinesunits.c - provides handling of special numners (DEF, MIN, MAX, …) and unitsfifo.c - provides basic implementation of error queue FIFOdebug.c - provides debug functionslibscpi/inc/ - main include directory
scpi/scpi.h - main include file - only this one should be includedscpi/config.h - configuration filelibscpi/test/ - unit tests using CUnitexamples/ - example sources
test-parser/ - is the basic non-interactive demo of the parsertest-interactive/ - is the basic command line interactive demo of the parsertest-tcp/ - is the basic interactive tcp server (port 5025)test-tcp-srq/ - ist the basic interactive tcp server with SRQtest-CVI_w_GUI/ - LabWindows/CVI exampletest-LwIP-netconn/ - Example for LwIP netconn APIcommon/scpi-def.c - Common implementation of instrument