PSI sics-cvs-psi_pre-ansto
This commit is contained in:
48
gpibcontroller.h
Normal file
48
gpibcontroller.h
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Interface to a GPIB controller.
|
||||
|
||||
copyright: see file COPYRIGHT
|
||||
|
||||
Mark Koennecke, January 2003
|
||||
------------------------------------------------------------------------*/
|
||||
#ifndef GPIBCONTROLLER
|
||||
#define GPIBCONTROLLER
|
||||
|
||||
/*
|
||||
error codes
|
||||
*/
|
||||
#define GPIBARG 4
|
||||
#define GPIBEDVR 0
|
||||
#define GPIBENEB 7
|
||||
#define GPIBEABO 6
|
||||
#define GPIBEADR 3
|
||||
#define GPIBEBUS 14
|
||||
#define GPIBENOL 2
|
||||
|
||||
|
||||
typedef struct __GPIB *pGPIB;
|
||||
|
||||
int GPIBattach(pGPIB self, int boardNo,
|
||||
int address, int secondaryAddress,
|
||||
int tmo, int eot, int eos);
|
||||
int GPIBdetach(pGPIB self, int devID);
|
||||
int GPIBsend(pGPIB self, int devID, void *buffer, int bytesToWrite);
|
||||
int GPIBread(pGPIB self, int devID, void *buffer, int bytesToRead);
|
||||
char *GPIBreadTillTerm(pGPIB self, int devID, int terminator);
|
||||
void GPIBclear(pGPIB self, int devID);
|
||||
void GPIBerrorDescription(pGPIB self, int code,
|
||||
char *buffer, int maxBuffer);
|
||||
|
||||
|
||||
|
||||
int MakeGPIB(SConnection *pCon, SicsInterp *pSics,
|
||||
void *pData,
|
||||
int argc, char *argv[]);
|
||||
int GPIBAction(SConnection *pCon, SicsInterp *pSics,
|
||||
void *pData,
|
||||
int argc, char *argv[]);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user