complete rewrite

r2589 | dcl | 2008-05-29 14:50:16 +1000 (Thu, 29 May 2008) | 2 lines
This commit is contained in:
Douglas Clowes
2008-05-29 14:50:16 +10:00
parent cf5d570a52
commit a87c8149db
2 changed files with 1256 additions and 285 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,52 +1,35 @@
/*-------------------------------------------------------------------------
NHQ 200
N H Q 2 0 0
Support for FAST ComTec NHQ2xx High Voltage Power Supply for SICS.
Support for NHQ 200 Voltage controllers for SICS.
The meaning and working of the functions defined is as desribed for a
general environment controller.
Mark Koennecke, Juli 1997
Mark Lesha, January 2006 (based on ITC4 code)
Douglas Clowes, December 2006 (based on LAKESHORE340 code)
Adapted from orhvps code written by:
Douglas Clowes, December 2007
copyright: see implementation file.
Douglas Clowes, May 2008
copyright: site_ansto/doc/Copyright.txt
-----------------------------------------------------------------------------*/
#ifndef SICSNHQ200
#define SICSNHQ200
/*------------------------- The Driver ------------------------------------*/
pEVDriver CreateNHQ200Driver(int argc, char *argv[]);
int ConfigNHQ200(pEVDriver self);
int SetSensorNHQ200(pEVDriver self, int iSensor);
int SetControlNHQ200(pEVDriver self, int iSensor);
int GetSensorNHQ200(pEVDriver self);
int GetControlNHQ200(pEVDriver self);
/* Divisors and multipliers should not be applicable to the NHQ200
since it uses floating point variables, but we leave the functions
in here anyway for the time being (setting will have no effect and
a value of 1.0 will always be returned. */
int SetDivisorNHQ200(pEVDriver self, float iSensor);
float GetDivisorNHQ200(pEVDriver self);
int SetMultNHQ200(pEVDriver self, float iSensor);
float GetMultNHQ200(pEVDriver self);
/* Leave in time-out functionality */
int SetTMONHQ200(pEVDriver self, int iSensor);
int GetTMONHQ200(pEVDriver self);
/*------------------------- The NHQ200 object ------------------------------*/
int NHQ200Wrapper(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
int NHQ200SetPar(pEVControl self, char *name, float fNew,
SConnection *pCon);
int NHQ200GetPar(pEVControl self, char *name, float *fVal);
int NHQ200List(pEVControl self, SConnection *pCon);
/*------------------------- The NHQ200 protocol ------------------------------*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "sics.h"
#include <obpar.h>
#include "ansto_evcontroller.h"
void NHQ200InitProtocol(SicsInterp *pSics);
pEVDriver CreateNHQ200Driver(int argc, char *argv[]);
void NHQ200Register(pEVControl self, pEVDriver driv);
int NHQ200Wrapper(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
#endif