Initial revision

This commit is contained in:
cvs
2000-02-07 10:38:55 +00:00
commit fdc6b051c9
846 changed files with 230218 additions and 0 deletions

51
hardsup/sinqhm.i Normal file
View File

@@ -0,0 +1,51 @@
/*---------------------------------------------------------------------------
Internal header file for the SINQ histogram memory utility functions.
David Maden, Mark Koennecke April 1997
----------------------------------------------------------------------------*/
#ifndef SINQHMINTERNAL
#define SINQHMINTERNAL
#define MAXBANK 1
typedef struct __SBANK {
int iStart;
int iEnd;
int iFlag;
int iEdgeLength;
int iDelay;
unsigned int *iEdges;
} SBank, *pSBank;
typedef struct __SINQHM {
char *pHMComputer;
int iMasterPort;
int iMasterSocket;
int iClientPort;
int iClientSocket;
int iBinWidth;
int iLength;
int iRank;
int iPacket;
int iBanks;
SBank pBank[MAXBANK];
} SINQHM;
/*---------------------------- Type definitions, machine dependent--------*/
typedef short int SQint16; /* 16 bit integer */
typedef int SQint32; /* 32 bit integer */
static int OpenMasterConnection(pSINQHM self);
static int GetMasterReply(pSINQHM self, struct rply_buff_struct *reply,
int iBufLen);
static int SendDAQCommand(pSINQHM self, int iCommand, int *iDaq);
static int SINQHMTimeBin(pSINQHM self, int iMode);
#endif