GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > TPG / V3-1-1
Constituent: gtb     Tag: mv2304
This graph shows which files directly or indirectly include this file:

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 containing base parameters for the gem test board More... | |
| struct | _GTBregBlock |
| layout of COMM board register block More... | |
| 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) |
| synonym for G_OK | |
| #define | GTB_ERR (GERR) |
| synonym for GERR | |
| #define | GTB_ERR_BRD_DETECT GERR_BRD_DETECT |
| synonym for GERR_BRD_DETECT | |
| #define | GTB_ERR_BAD_HANDLE GERR_BAD_HANDLE |
| synonym for GERR_BAD_HANDLE | |
| #define | GTB_ERR_BAD_PARAM GERR_BAD_PARAM |
| synonym for GERR_BAD_PARAM | |
| #define | GTB_ERR_READY_TIMEOUT GERR_READY_TIMEOUT |
| synonym for 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 for struct _GTBregBlock | |
| typedef _GTB_T_ | GTB_t |
| typedef for struct _GTB_T_ | |
| typedef GTB_t * | gtbHndl |
| typedef for GTB_t* | |
Functions | |
| gtbHndl | gtbOpen (unsigned int physAddr) |
| maps the physical address to an instance of the driver object | |
| int | gtbClose (gtbHndl h) |
| shuts down the device attached to handle | |
| int | gtbReset (gtbHndl h) |
| resets the board referenced by handle. Returns the board to a known state. | |
| int | gtbFlushAllF (gtbHndl h) |
| flushes the record and playback FIFOs of the board referenced by handle. | |
| int | gtbFlushF (gtbHndl h, int fifoId) |
| flushes the playback FIFO of the board referenced by handle. | |
| int | gtbFlushRF (gtbHndl h) |
| flushes the record FIFO of the board referenced by handle. | |
| int | gtbFlushPF (gtbHndl h) |
| flushes the playback FIFO of the board referenced by handle. | |
| int | gtbProbe (gtbHndl h) |
| int | gtbHWver (gtbHndl h, unsigned short int *version, unsigned short int *revision) |
| fetches the hardware version and revision numbers from the board | |
| int | gtbSWver (gtbHndl h, unsigned short int *version, unsigned short int *revision) |
| fetches the software version and revision numbers from the board | |
| int | gtbWriteF16 (gtbHndl h, unsigned short int val, int fifoId) |
| writes the 16-bit short word val to the play back FIFO | |
| int | gtbWriteF16n (gtbHndl h, unsigned short int nItem, unsigned short int val, int fifoId) |
| writes the 16-bit short word val to the play back FIFO nItem times | |
| int | gtbWriteF16v (gtbHndl h, unsigned short int nVal, unsigned short int *aVal, int fifoId) |
| writes the array of 16-bit short words aVal to the play back FIFO | |
| int | gtbWriteF32 (gtbHndl h, unsigned int val, int fifoId) |
| writes the 32-bit word val to the play back FIFO | |
| int | gtbWriteF32n (gtbHndl h, unsigned short int nItem, unsigned int val, int fifoId) |
| writes the 32-bit word val to the play back FIFO | |
| int | gtbWriteF32v (gtbHndl h, unsigned int nVal, unsigned int *aVal, int fifoId) |
| writes the array of 32-bit words aVal to the play back FIFO | |
| int | gtbEnableAllF (gtbHndl h) |
| Prepares both the playback and record FIFOs for writing, by taking them out of reset. | |
| int | gtbEnableF (gtbHndl h, int fifoId) |
| Prepares the play back FIFO for writing, by taking it out of reset. | |
| int | gtbEnablePF (gtbHndl h) |
| Prepares the play back FIFO for writing, by taking it out of reset. | |
| int | gtbEnableRF (gtbHndl h) |
| Prepares the record FIFO for writing, by taking it out of reset. | |
| int | gtbFlushPipe (gtbHndl h) |
| Purges stale cruft from internal FPGA state machine. | |
| int | gtbClrALLhist (gtbHndl h) |
| Clears the latched occupancy status for both Playback and Record FIFOs. | |
| int | gtbClrFhist (gtbHndl h, int fifoId) |
| Clears the latched occupancy status for the Playback FIFOs. | |
| int | gtbClrPFhist (gtbHndl h) |
| Clears the latched occupancy status for the Playback FIFOs. | |
| int | gtbClrRFhist (gtbHndl h) |
| Clears the latched occupancy status for the record FIFO. | |
| int | gtbStartPB (gtbHndl h) |
| Start the playblack sequence. | |
| int | gtbSetAcqSrc (gtbHndl h, unsigned int src) |
| Set the source for initiating playback. | |
| int | gtbSetRecDly (gtbHndl h, unsigned char dly) |
| Set the delay for the read back FIFO. | |
| int | gtbSetClkDly (gtbHndl h, unsigned char dly) |
| Set the delay for the channel 0 clock. | |
| int | gtbSetIrqDelay (gtbHndl h, unsigned int dly) |
| Set interrupt delay for this gnatHandle. | |
| int | gtbSetIrqLevel (gtbHndl h, unsigned int level) |
| Set interrupt level for this gnatHandle. | |
| int | gtbGetIrqLevel (gtbHndl h, unsigned int *level) |
| Get interrupt level for this gnatHandle. | |
| int | gtbSetIrqVector (gtbHndl h, unsigned int vector) |
| Set interrupt vector for this gnatHandle. | |
| int | gtbGetIrqVector (gtbHndl h, unsigned int *vector) |
| Get interrupt vector for this gnatHandle. | |
| int | gtbConnectIrq (gtbHndl h) |
| Prepares driver and board for interrupts. | |
| int | gtbEnableIrq (gtbHndl h) |
| Enables interrupt. | |
| int | gtbDisableIrq (gtbHndl h) |
| Disables interrupt. | |
| int | gtbSetOutMask (gtbHndl h, unsigned int mask) |
| Sets the output XOR bit mask used when writing to the FIFO. | |
| int | gtbGetOutMask (gtbHndl h, unsigned int *mask) |
| Gets the output XOR bit mask used when writing to the FIFO. | |
| int | gtbTakeIntSem (gtbHndl h) |
| Takes the interrupt sync semaphore. | |
| int | gtbSetActive (gtbHndl h, unsigned int mode) |
| Set active member for gnatHandle. | |
| int | gtbGetActive (gtbHndl h, unsigned int *mode) |
| Returns current active mode for gnatHandle. | |
| int | gtbVersion (gtbHndl h, unsigned short hwVer, unsigned short hwRev, unsigned short swVer, unsigned short swRev) |
| Checks the COMM Board hardware version/revision. | |
| int | gtbReady (gtbHndl h, int timeOut) |
| Waits for the COMM board to become ready, via polling. | |
| int | gtbLockFIFO (gtbHndl h, int timeOut) |
| Locks access to the COMM board FIFO. | |
| int | gtbUnLockFIFO (gtbHndl h) |
| Unlocks access to the COMM board FIFO. | |
| int | gtbGetLogicalAddr (gtbHndl h, unsigned int *addr) |
| returns the logical address attached to handle | |
| int | gtbGetPhysAddr (gtbHndl h, unsigned int *addr) |
| returns the physical address attached to handle | |
| gtbClk_t | gtbClkDetect (gtbHndl h) |
| Return (what). | |
| void | gtbClkUse (gtbHndl h, gtbClk_t clk) |
| Use clock (what). | |
| void | gtbClkForce (gtbHndl h, gtbClk_t clk) |
| Force clock (what). | |
| void | gtbArm (gtbHndl h, gtbTrig_t trig) |
| Arm trigger (what). | |
| void | gtbDisarm (gtbHndl h, gtbTrig_t trig) |
| Disarm trigger (what). | |
| gtbType_t | gtbType (gtbHndl h) |
| Return gtb type. | |
| int | gtbIsValidHandle (gtbHndl h) |
| Is handle valid. | |
| int | gtbIsFullFifo (gtbHndl h, int fifoId) |
| Test for FIFO full (what). | |
| int | gtbIsEmptyFifo (gtbHndl h, int fifoId) |
| Test for FIFO empty (what). | |
| int | gtbFifoTest (gtbHndl h, int fifoId) |
| Test FIFO (what). | |
| void | gtbVetoSelect (gtbHndl h) |
| Select veto (what). | |
| void | gtbCnoSelect (gtbHndl h) |
| Select CNO (what). | |
|
||||||||||||
|
Arm trigger (what).
|
|
|
Return (what).
|
|
||||||||||||
|
Force clock (what).
|
Here is the call graph for this function:

|
||||||||||||
|
Use clock (what).
|
|
|
shuts down the device attached to handle
|
|
|
Clears the latched occupancy status for both Playback and Record FIFOs.
|
Here is the call graph for this function:

|
||||||||||||
|
Clears the latched occupancy status for the Playback FIFOs.
|
|
|
Clears the latched occupancy status for the Playback FIFOs.
|
|
|
Clears the latched occupancy status for the record FIFO.
|
|
|
Select CNO (what).
|
|
|
Prepares driver and board for interrupts.
|
Here is the call graph for this function:

|
|
Disables interrupt.
|
|
||||||||||||
|
Disarm trigger (what).
|
|
|
Prepares both the playback and record FIFOs for writing, by taking them out of reset.
|
Here is the call graph for this function:

|
||||||||||||
|
Prepares the play back FIFO for writing, by taking it out of reset.
|
|
|
Enables interrupt.
|
|
|
Prepares the play back FIFO for writing, by taking it out of reset.
|
|
|
Prepares the record FIFO for writing, by taking it out of reset.
|
|
||||||||||||
|
Test FIFO (what).
|
Here is the call graph for this function:

|
|
flushes the record and playback FIFOs of the board referenced by handle.
|
Here is the call graph for this function:

|
||||||||||||
|
flushes the playback FIFO of the board referenced by handle.
|
|
|
flushes the playback FIFO of the board referenced by handle.
|
|
|
Purges stale cruft from internal FPGA state machine.
|
Here is the call graph for this function:

|
|
flushes the record FIFO of the board referenced by handle.
|
|
||||||||||||
|
Returns current active mode for gnatHandle.
|
|
||||||||||||
|
Get interrupt level for this gnatHandle.
|
|
||||||||||||
|
Get interrupt vector for this gnatHandle.
|
|
||||||||||||
|
returns the logical address attached to handle
|
|
||||||||||||
|
Gets the output XOR bit mask used when writing to the FIFO.
|
|
||||||||||||
|
returns the physical address attached to handle
|
|
||||||||||||||||
|
fetches the hardware version and revision numbers from the board
|
|
||||||||||||
|
Test for FIFO empty (what).
|
|
||||||||||||
|
Test for FIFO full (what).
|
|
|
Is handle valid.
|
|
||||||||||||
|
Locks access to the COMM board FIFO.
|
|
|
maps the physical address to an instance of the driver object
|
Here is the call graph for this function:

|
|
|
Here is the call graph for this function:

|
||||||||||||
|
Waits for the COMM board to become ready, via polling.
|
|
|
resets the board referenced by handle. Returns the board to a known state.
|
|
||||||||||||
|
Set the source for initiating playback.
|
|
||||||||||||
|
Set active member for gnatHandle.
|
|
||||||||||||
|
Set the delay for the channel 0 clock.
|
|
||||||||||||
|
Set interrupt delay for this gnatHandle.
|
|
||||||||||||
|
Set interrupt level for this gnatHandle.
|
|
||||||||||||
|
Set interrupt vector for this gnatHandle.
|
|
||||||||||||
|
Sets the output XOR bit mask used when writing to the FIFO.
|
|
||||||||||||
|
Set the delay for the read back FIFO.
|
|
|
Start the playblack sequence.
|
|
||||||||||||||||
|
fetches the software version and revision numbers from the board
|
|
|
Takes the interrupt sync semaphore.
|
|
|
Return gtb type.
|
|
|
Unlocks access to the COMM board FIFO.
|
|
||||||||||||||||||||||||
|
Checks the COMM Board hardware version/revision.
|
Here is the call graph for this function:

|
|
Select veto (what).
|
|
||||||||||||||||
|
writes the 16-bit short word val to the play back FIFO
|
|
||||||||||||||||||||
|
writes the 16-bit short word val to the play back FIFO nItem times
|
|
||||||||||||||||||||
|
writes the array of 16-bit short words aVal to the play back FIFO
|
|
||||||||||||||||
|
writes the 32-bit word val to the play back FIFO
|
|
||||||||||||||||||||
|
writes the 32-bit word val to the play back FIFO
|
|
||||||||||||||||||||
|
writes the array of 32-bit words aVal to the play back FIFO
|
1.3.3