GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > TPG / V3-0-0

Constituent: tpg     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

GTB.h File Reference

Defines the input/output methods for the Gem Test Board driver The Gem Test Board is a modified COMM board, so this. More...


Data Structures

struct  _BFregControl
 map of the comm i/o board 32-bit control register More...

struct  _BFregInt
 map of the comm i/o board 32-bit interrupt config register More...

struct  _BFregPF
 map of the comm i/o board 32-bit playback FIFO register More...

struct  _BFregRF
 map of the comm i/o board 32-bit record FIFO register More...

struct  _BFregStatus
 map of the comm i/o board 32-bit status register More...

struct  _GTB_T_
struct  _GTBregBlock
union  _regControl
 union for 32-bit control register More...

union  _regInt
 union for 32-bit interrupt register More...

union  _regPF
 union for 32-bit play back FIFO register More...

union  _regRF
 union for 32-bit record FIFO register More...

union  _regStatus
 union for 32-bit status register More...


Defines

#define G_OK   (0)
 generic success return code

#define GERR   (-1)
 generic failure return code

#define GERR_BRD_DETECT   (-103)
 unable to detect/probe board error return code

#define GERR_BAD_HANDLE   (-104)
 bad handle error return code

#define GERR_BAD_PARAM   (-105)
 bad parameter passed to function error return code

#define GERR_READY_TIMEOUT   (-110)
 timeout error while waiting for COMM ready

#define GTB_OK   (G_OK)
#define GTB_ERR   (GERR)
#define GTB_ERR_BRD_DETECT   GERR_BRD_DETECT
#define GTB_ERR_BAD_HANDLE   GERR_BAD_HANDLE
#define GTB_ERR_BAD_PARAM   GERR_BAD_PARAM
#define GTB_ERR_READY_TIMEOUT   GERR_READY_TIMEOUT

Typedefs

typedef _regControl regControl
 typedef for union _regControl

typedef _regStatus regStatus
 typedef for union _regStatus

typedef _regPF regPF
 typedef for union _regPF

typedef _regRF regRF
 typedef for union _regRF

typedef _regInt regInt
 typedef for union _regInt

typedef _GTBregBlock GTBreg_t
typedef _GTB_T_ GTB_t
typedef GTB_t * gtbHndl

Functions

gtbHndl gtbOpen (unsigned int physAddr)
int gtbClose (gtbHndl h)
int gtbReset (gtbHndl h)
int gtbFlushAllF (gtbHndl h)
int gtbFlushF (gtbHndl h, int fifoId)
int gtbFlushRF (gtbHndl h)
int gtbFlushPF (gtbHndl h)
int gtbProbe (gtbHndl h)
int gtbHWver (gtbHndl h, unsigned short *ver, unsigned short *rev)
int gtbSWver (gtbHndl h, unsigned short *ver, unsigned short *rev)
int gtbWriteF16 (gtbHndl h, unsigned short val, int fifoId)
int gtbWriteF16n (gtbHndl h, unsigned short nItem, unsigned short val, int fifoId)
int gtbWriteF16v (gtbHndl h, unsigned short nVal, unsigned short *aVal, int fifoId)
int gtbWriteF32 (gtbHndl h, unsigned int val, int fifoId)
int gtbWriteF32n (gtbHndl h, unsigned short nItem, unsigned int val, int fifoId)
int gtbWriteF32v (gtbHndl h, unsigned int nVal, unsigned int *aVal, int fifoId)
int gtbEnableAllF (gtbHndl h)
int gtbEnableF (gtbHndl h, int fifoId)
int gtbEnablePF (gtbHndl h)
int gtbEnableRF (gtbHndl h)
int gtbFlushPipe (gtbHndl h)
int gtbClrALLhist (gtbHndl h)
int gtbClrFhist (gtbHndl h, int fifoId)
int gtbClrPFhist (gtbHndl h)
int gtbClrRFhist (gtbHndl h)
int gtbStartPB (gtbHndl h)
int gtbSetAcqSrc (gtbHndl h, unsigned int src)
int gtbSetRecDly (gtbHndl h, unsigned char dly)
int gtbSetClkDly (gtbHndl h, unsigned char dly)
int gtbSetIrqDelay (gtbHndl h, unsigned int dly)
int gtbSetIrqLevel (gtbHndl h, unsigned int level)
int gtbGetIrqLevel (gtbHndl h, unsigned int *level)
int gtbSetIrqVec (gtbHndl h, unsigned int vector)
int gtbGetIrqVec (gtbHndl h, unsigned int *vector)
int gtbConnectIrq (gtbHndl h)
int gtbEnableIrq (gtbHndl h)
int gtbDisableIrq (gtbHndl h)
int gtbSetOutMask (gtbHndl h, unsigned int mask)
int gtbGetOutMask (gtbHndl h, unsigned int *mask)
int gtbTakeIntSem (gtbHndl h)
int gtbSetActive (gtbHndl h, unsigned int mode)
int gtbGetActive (gtbHndl h, unsigned int *mode)
int gtbVersion (gtbHndl h, unsigned short hwVer, unsigned short hwRev, unsigned short swVer, unsigned short swRev)
int gtbReady (gtbHndl h, int timeOut)
int gtbLockFIFO (gtbHndl h, int timeOut)
int gtbUnLockFIFO (gtbHndl h)
int gtbGetLogicalAddr (gtbHndl h, unsigned int *addr)
int gtbGetPhysAddr (gtbHndl h, unsigned int *addr)
gtbClk_t gtbClkDetect (gtbHndl h)
void gtbClkUse (gtbHndl h, gtbClk_t clk)
void gtbClkForce (gtbHndl h, gtbClk_t clk)
void gtbArm (gtbHndl h, gtbTrig_t trig)
void gtbDisarm (gtbHndl h, gtbTrig_t trig)
gtbType_t gtbType (gtbHndl h)
int gtbIsValidHandle (gtbHndl h)
int gtbIsFullFifo (gtbHndl h, int fifoId)
int gtbIsEmptyFifo (gtbHndl h, int fifoId)
int gtbFifoTest (gtbHndl h, int fifoId)
void gtbVetoSelect (gtbHndl h)
void gtbCnoSelect (gtbHndl h)


Detailed Description

Defines the input/output methods for the Gem Test Board driver The Gem Test Board is a modified COMM board, so this.

Author:
Mark McDougald -- mark@slac.stanford.edu

Generated on Thu Jun 23 22:00:20 2005 by doxygen 1.3.3