- GPIB/ECB modules completed, ecb motor driver in progress
This commit is contained in:
27
modriv.h
27
modriv.h
@ -27,10 +27,14 @@
|
||||
int (*GetStatus)(void *self);
|
||||
void (*GetError)(void *self, int *iCode, char *buffer, int iBufLen);
|
||||
int (*TryAndFixIt)(void *self, int iError,float fNew);
|
||||
int (*ContinueAfterWarn)(void *self);
|
||||
int (*Halt)(void *self);
|
||||
}
|
||||
MotorDriver;
|
||||
int (*GetDriverPar)(void *self, char *name,
|
||||
float *value);
|
||||
int (*SetDriverPar)(void *self,SConnection *pCon,
|
||||
char *name, float newValue);
|
||||
void (*ListDriverPar)(void *self, char *motorName,
|
||||
SConnection *pCon);
|
||||
} MotorDriver;
|
||||
|
||||
/* the first fields above HAVE to be IDENTICAL to those below */
|
||||
|
||||
@ -46,8 +50,13 @@
|
||||
int (*GetStatus)(void *self);
|
||||
void (*GetError)(void *self, int *iCode, char *buffer, int iBufLen);
|
||||
int (*TryAndFixIt)(void *self,int iError, float fNew);
|
||||
int (*ContinueAfterWarn)(void *self);
|
||||
int (*Halt)(void *self);
|
||||
int (*GetDriverPar)(void *self, char *name,
|
||||
float *value);
|
||||
int (*SetDriverPar)(void *self,SConnection *pCon,
|
||||
char *name, float newValue);
|
||||
void (*ListDriverPar)(void *self, char *motorName,
|
||||
SConnection *pCon);
|
||||
|
||||
|
||||
/* EL-734 specific fields */
|
||||
@ -71,8 +80,13 @@
|
||||
int (*GetStatus)(void *self);
|
||||
void (*GetError)(void *self, int *iCode, char *buffer, int iBufLen);
|
||||
int (*TryAndFixIt)(void *self,int iError, float fNew);
|
||||
int (*ContinueAfterWarn)(void *self);
|
||||
int (*Halt)(void *self);
|
||||
int (*GetDriverPar)(void *self, char *name,
|
||||
float *value);
|
||||
int (*SetDriverPar)(void *self,SConnection *pCon,
|
||||
char *name, float newValue);
|
||||
void (*ListDriverPar)(void *self, char *motorName,
|
||||
SConnection *pCon);
|
||||
|
||||
/* Simulation specific fields */
|
||||
float fFailure; /* percent random failures*/
|
||||
@ -90,8 +104,5 @@
|
||||
/* ----------------------- Simulation -----------------------------------*/
|
||||
MotorDriver *CreateSIM(SConnection *pCon, int argc, char *argv[]);
|
||||
void KillSIM(void *pData);
|
||||
|
||||
/*------------------------ Default ContinueAfterWarn -----------------*/
|
||||
int MoDrivXXXContinue(void *pData);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user