From fb66b08ce3b25b2039b94d74ea91f9bc8dc161b0 Mon Sep 17 00:00:00 2001 From: cvs Date: Fri, 27 Apr 2001 08:53:13 +0000 Subject: [PATCH] -Added tasu.h --- tasu.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 tasu.h diff --git a/tasu.h b/tasu.h new file mode 100644 index 00000000..e813cc24 --- /dev/null +++ b/tasu.h @@ -0,0 +1,43 @@ +/* + This is a helper header file which contains the prototypes for some + functions to be used in the implementation of the triple axis spectrometer + module. For more info on the functions see the comments in the + implemntation file tasutil.c + + Mark Koennecke, November 2000 +*/ +#ifndef TASUSICS +#define TASUSICS + +extern char *tasMotorOrder[]; +extern char *tasVariableOrder[]; + +/* maximum number of motors in the list */ +#define MAXMOT 19 + + +/* + Note: the defines below MUST map the range between EI - HZ in the list + of variables as defined in tas.h. Otherwise quite interesting things + can happen. +*/ +#define EMIN 25 +#define EMAX 36 + + +int isTASMotor(char *val); +int isTASVar(char *val); +int isTASEnergy(char *val); +void prepare2Parse(char *line); +int tasNumeric(char *pText); +int TASCalc(pTASdata self, SConnection *pCon, + unsigned char tasMask[10], + float motorTargets[20], + unsigned char motorMask[20]); +int TASStart(pTASdata self, SConnection *pCon, SicsInterp *pSics, + float motorTargets[20], + unsigned char motorMask[20]); + + + +#endif