
This is our new RELEASE-4_0 branch which was taken from ansto/93d9a7c Conflicts: .gitignore SICSmain.c asynnet.c confvirtualmot.c counter.c devexec.c drive.c event.h exebuf.c exeman.c histmem.c interface.h motor.c motorlist.c motorsec.c multicounter.c napi.c napi.h napi4.c network.c nwatch.c nxscript.c nxxml.c nxxml.h ofac.c reflist.c scan.c sicshipadaba.c sicsobj.c site_ansto/docs/Copyright.txt site_ansto/instrument/lyrebird/config/tasmad/sicscommon/nxsupport.tcl site_ansto/instrument/lyrebird/config/tasmad/taspub_sics/tasscript.tcl statusfile.c tasdrive.c tasub.c tasub.h tasublib.c tasublib.h
51 lines
1.4 KiB
C
51 lines
1.4 KiB
C
|
|
/*---------------------------------------------------------------------
|
|
S I C S D A T A
|
|
|
|
An attempt to a generic interface to SICS data for all sorts of SICS
|
|
clients.
|
|
|
|
copyright: see file COPYRIGHT
|
|
|
|
Mark Koennecke, June 2003
|
|
----------------------------------------------------------------------*/
|
|
#ifndef SICSDATA
|
|
#define SICSDATA
|
|
#define INTTYPE 0
|
|
#define FLOATTYPE 1
|
|
|
|
|
|
typedef struct {
|
|
pObjectDescriptor pDes;
|
|
int *data;
|
|
char *dataType;
|
|
int dataUsed;
|
|
int currentDataSize;
|
|
}SICSData, *pSICSData;
|
|
|
|
|
|
/*------------------------------------------------------------------*/
|
|
|
|
int *getSICSDataPointer(pSICSData self, int start, int end);
|
|
|
|
pSICSData createSICSData(char *name);
|
|
|
|
void assignSICSType(pSICSData self, int start, int end, int type);
|
|
|
|
int SICSDataFactory(SConnection *pCon, SicsInterp *pSics,
|
|
void *pData,
|
|
int argc, char *argv[]);
|
|
|
|
int SICSDataAction(SConnection *pCon, SicsInterp *pSics,
|
|
void *pData,
|
|
int argc, char *argv[]);
|
|
|
|
void clearSICSData(pSICSData self);
|
|
int getSICSDataInt(pSICSData self, int pos, int *value);
|
|
int getSICSDataFloat(pSICSData self, int pos, float *value);
|
|
int setSICSDataInt(pSICSData self, int pos, int value);
|
|
int setSICSDataFloat(pSICSData self, int pos, float value);
|
|
|
|
|
|
#endif
|