Files
sics/site_ansto/refl2t.h
2014-05-16 17:23:44 +10:00

50 lines
1.4 KiB
C

/***********************************************************
* Simple virtual 2 theta driver for the RRR Reflectometer *
* *
* Paul Hathaway, Nick Hauser, Mark Koennecke. 4 Feb 2004. *
************************************************************/
#define MAXMOT = 3;
/* aMot is the array of motors that includes the
1. sample stage height motor
2. detector x motor
3. detector z motor
*/
typedef struct __REFL2T {
pObjectDescriptor pDes;
pIDrivable pDriv;
pMotor aEngine[MAXMOT];
/* MotEntry toStart[]; */
ObPar *aParameter;
float fTarget;
}Refl2T;
#ifndef REFL2T
#define REFL2T
typedef struct __REFL2T *pRefl2T;
int Refl2TFactory(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
int Refl2TAction(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
#endif
/* distance sample to detector */
#define PARDDD = 0;
/* distance offset for height of detector */
#define PARDHO = 1;
/* distance offset for sample height */
#define PARDSO = 2;
typedef struct {
pMotor pMot;
char pName[80];
float fTarget;
int iLast;
}MotEntry, *pMotEntry;