GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > TPG / V3-1-1
Constituent: gtb     Tag: mv2304
#include "GNAT/VME.h"
#include "TPG/GTBtypes.h"
#include "TPG/GTB.h"
#include "GTB_p.h"
Include dependency graph for GTB.c:

Defines | |
| #define | PACKET_READY_INTR_LEVEL (3) |
| Packet ready interrupt level. | |
| #define | PACKET_READY_INTR_VECTOR (200) |
| Packet ready interrupt vector. | |
| #define | GTB_DEBUG_OFF 0x00000000 |
| GTB debug off. | |
| #define | GTB_DEBUG_CLKS 0x00000010 |
| GTB debug clocks. | |
| #define | FIFO_TEST_LENGTH 8 |
| FIFO test length. | |
Functions | |
| int | boardProbe (unsigned int) |
| attempts to detect the presence of the board at the localAdr location | |
| 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). | |
| 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 | 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 | |
| int | gtbProbe (gtbHndl h) |
| 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 | gtbReset (gtbHndl h) |
| resets the board referenced by handle. Returns the board to a known state. | |
| 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 | gEnableClk0 (gtbHndl h) |
| Enables continuous clock on channel 0, generated by board. | |
| 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 | 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 | 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 *vec) |
| Get interrupt vector for this gnatHandle. | |
| int | gtbSetIrqDelay (gtbHndl h, unsigned int dly) |
| Set interrupt delay for this gnatHandle. | |
| void | srvIntr (gtbHndl h) |
| ISR that gives the m_syncSem semaphore when the record FIFO has a packet ready. | |
| int | gtbConnectIrq (gtbHndl h) |
| Prepares driver and board for interrupts. | |
| int | gtbEnableIrq (gtbHndl h) |
| Enables interrupt. | |
| int | gtbDisableIrq (gtbHndl h) |
| Disables interrupt. | |
| 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 | gtbFlushPipe (gtbHndl h) |
| Purges stale cruft from internal FPGA state machine. | |
| 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 | 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. | |
| gtbType_t | gtbType (gtbHndl h) |
| Return gtb type. | |
| gtbClk_t | gtbClkDetect (gtbHndl h) |
| Return (what). | |
| void | gtbClkForce (gtbHndl h, gtbClk_t clk) |
| Force clock (what). | |
| void | gtbClkUse (gtbHndl h, gtbClk_t clk) |
| Use clock (what). | |
| void | gtbVetoSelect (gtbHndl h) |
| Select veto (what). | |
| void | gtbCnoSelect (gtbHndl h) |
| Select CNO (what). | |
| void | gtbArm (gtbHndl h, gtbTrig_t trig) |
| Arm trigger (what). | |
| void | gtbDisarm (gtbHndl h, gtbTrig_t trig) |
| Disarm trigger (what). | |
| int | gtbIsValidHandle (gtbHndl h) |
| Is handle valid. | |
Variables | |
| unsigned int | gtbDebug = GTB_DEBUG_OFF |
| Set debugging on/off. | |
|
|
attempts to detect the presence of the board at the localAdr location
|
|
|
Enables continuous clock on channel 0, generated by board.
|
|
||||||||||||
|
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
|
|
|
ISR that gives the m_syncSem semaphore when the record FIFO has a packet ready.
|
1.3.3