- Added sinfo to SICS - Added driver for TCP/IP Astrium velocity selector - Added driver for TCP/IP Astrium chopper controller SKIPPED: psi/amor2t.c psi/amorstat.c psi/dornier2.c psi/ecb.c psi/el734hp.c psi/fowrite.c psi/libpsi.a psi/make_gen psi/nextrics.c psi/pardef.c psi/pimotor.c psi/pipiezo.c psi/polterwrite.c psi/psi.c psi/scontroller.c psi/serial.c psi/tasinit.c psi/tasscan.c psi/tcpdocho.c psi/tcpdornier.c psi/tricssupport.c psi/velodornier.c
116 lines
2.4 KiB
C
116 lines
2.4 KiB
C
/*---------------------------------------------------------------------------
|
|
----------------------------------------------------------------------------*/
|
|
#ifndef ANSTO_SINFOX
|
|
#define ANSTO_SINFOX
|
|
#include <sics.h>
|
|
#include <conman.h>
|
|
|
|
typedef struct __Sinfox {
|
|
pObjectDescriptor pDes; /* required as first field */
|
|
const char *buildVersion;
|
|
const char *configName;
|
|
const char *configVersion;
|
|
const char *description;
|
|
const char *instrument;
|
|
const char *schemaVersion;
|
|
Tcl_Interp *tTcl;
|
|
} Sinfox;
|
|
|
|
typedef struct __Sinfox *pSinfox;
|
|
|
|
#ifndef SICSSITE /* Avoid duplicate declaration in site_ansto.c */
|
|
|
|
const int iNumInfoKeys = 6;
|
|
char *pInfoKeys[7] = {
|
|
"buildVersion",
|
|
"configName",
|
|
"configVersion",
|
|
"description",
|
|
"instrument",
|
|
"schemaVersion",
|
|
NULL
|
|
};
|
|
|
|
const int iNumCommandKeys = 3;
|
|
char *pCommandKeys[4] = {
|
|
"argument",
|
|
"device",
|
|
"interface",
|
|
NULL
|
|
};
|
|
|
|
const int iNumDeviceKeys = 3;
|
|
char *pDeviceKeys[4] = {
|
|
"attribute",
|
|
"command",
|
|
"interface",
|
|
NULL
|
|
};
|
|
|
|
const int iNumDeviceTypes = 24;
|
|
char *pDeviceTypes[25] = {
|
|
"4-circle-calculus",
|
|
"anticollider",
|
|
"chopper",
|
|
"chopperadaptor",
|
|
"connection",
|
|
"crystalselector",
|
|
"environment monitor",
|
|
"environment controller",
|
|
"gpib",
|
|
"hklscan",
|
|
"hmcontrol",
|
|
"lin2ang",
|
|
"local maximum detector",
|
|
"maximizer",
|
|
"mesure",
|
|
"motor",
|
|
"mulmot",
|
|
"omega2theta",
|
|
"rs232 controller",
|
|
"scanobject",
|
|
"sicsvariable",
|
|
"singlecounter",
|
|
"velocityselector",
|
|
"xytable",
|
|
NULL
|
|
};
|
|
|
|
const int iNumIFaces = 4;
|
|
char *pIFaces[5] = {
|
|
"callback",
|
|
"countable",
|
|
"drivable",
|
|
"environment",
|
|
NULL
|
|
};
|
|
|
|
const int iNumServerKeys = 10;
|
|
char *pServerKeys[11] = {
|
|
"help",
|
|
"list",
|
|
"command",
|
|
"connection",
|
|
"device",
|
|
"devicetype",
|
|
"experiment",
|
|
"group",
|
|
"interface",
|
|
"key",
|
|
NULL
|
|
};
|
|
|
|
#endif /* SICSSITE */
|
|
|
|
/*--------------------- lifecycle -------------------------------------- */
|
|
int InstallSinfox(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
void DeleteSinfox(void *pSelf);
|
|
|
|
/*--------------------- operations --------------------------------------*/
|
|
int SinfoxAction(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
|
|
/*-----------------------------------------------------------------------*/
|
|
#endif /* ANSTO_SINFOX */
|