- remote objects - new ev drivers for oxford IPS,ITC,ILM and LC M.Z. SKIPPED: psi/eve.c psi/eve.h psi/fsm.c psi/fsm.h psi/ilmdriv.c psi/ipsdriv.c psi/itcdriv.c psi/lcdriv.c psi/logger.c psi/logger.h psi/make_gen psi/oicom.c psi/oicom.h psi/psi.c psi/remob.c psi/remob.h psi/tecs/didi psi/tecs/make_crv.tcsh psi/tecs/make_gen psi/tecs/myc_buf.c psi/tecs/six.c psi/tecs/tecs.c psi/tecs/tecs_client.f psi/tecs/tecs_plot.f psi/tecs/term.c psi/tecs/pg_plus/xwdriv.c
52 lines
1.9 KiB
C
52 lines
1.9 KiB
C
|
|
#line 226 "evcontroller.w"
|
|
|
|
/*--------------------------------------------------------------------------
|
|
E N V I R O N M E N T C O N T R O L L E R
|
|
|
|
This is the base class for all environment controllers.
|
|
|
|
Mark Koennecke, Juli 1997
|
|
|
|
copyright: see implementation file
|
|
----------------------------------------------------------------------------*/
|
|
#ifndef SICSEVCONTROL
|
|
#define SICSEVCONTROL
|
|
#include "varlog.h"
|
|
|
|
#line 146 "evcontroller.w"
|
|
|
|
/*--------------------------- live & death --------------------------------*/
|
|
typedef struct __EVControl *pEVControl;
|
|
typedef struct __EVDriver *pEVDriver;
|
|
|
|
pEVControl CreateEVController(pEVDriver pDriv, char *pName, int *iErr);
|
|
void DeleteEVController(void *pData);
|
|
pEVControl MakeEVController(pEVDriver pDriv, SConnection *pCon,
|
|
ObjectFunc wrapper, int argc, char *argv[]);
|
|
int EVSaveStatus(void *pData, char *name, FILE *fil);
|
|
/*-------------------------- driving ---------------------------------*/
|
|
int EVCDrive(pEVControl self,SConnection *pCon, float fNew);
|
|
int EVCGetPos(pEVControl self, SConnection *pCon,float *fVal);
|
|
|
|
/*------------------------ parameters ----------------------------------*/
|
|
EVMode EVCGetMode(pEVControl self);
|
|
int EVCSetMode(pEVControl self, EVMode eNew);
|
|
int EVCSetPar(pEVControl self, char *name, float fNew, SConnection *pCon);
|
|
int EVCGetPar(pEVControl self, char *name, float *fVal);
|
|
int EVCList(pEVControl self, SConnection *pCon);
|
|
/*------------------------- logging -----------------------------------*/
|
|
pVarLog EVCGetVarLog(pEVControl self);
|
|
/*----------------- Interface to SICS interpreter -----------------------*/
|
|
int EVControlWrapper(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
|
|
int EVControlFactory(SConnection *pCon, SicsInterp *pSics, void *pData,
|
|
int argc, char *argv[]);
|
|
|
|
|
|
|
|
#line 239 "evcontroller.w"
|
|
|
|
#endif
|