GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > TPG / V3-1-1
Constituent: tpg     Tag: mv2304
#include "TPG/TPG_msgs.h"
#include "tpg_p.h"
#include "tpgmap.h"
#include "LEM/cli.h"
#include "MSG/MSG_pubdefs.h"
#include "MSG/MSG_msgs.h"
#include "MSG/MSG_printProc.h"
#include "PBS/PBS.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <taskLib.h>
Include dependency graph for tpg.c:

Defines | |
| #define | TPG_DEBUG_NONE 0x00000000 |
| Use unknown. | |
| #define | TPG_DEBUG_CLK_SEL 0x00000001 |
| Use unknown. | |
| #define | TPG_TIME_IN_CMD |
| Use unknown. | |
| #define | INC_CNT_MAX 8 |
| Use unknown. | |
Functions | |
| void | TPGupdateCachedCnt (unsigned count) |
| Use unknown. | |
| unsigned | TPGnBoards (TPG *this) |
| Use unknown. | |
| unsigned | TPGgtbPresent (TPG *this, unsigned boardId) |
| Test for board presence. | |
| TPG * | TPGnew (unsigned *brdAddr) |
| Calls calloc to allocate memory for the struct and associated buffers then sets the buffer pointers to the correct offsets. | |
| void | TPGclear (TPG *this) |
| Sets all the buffers to 0. | |
| void | TPGclearBuf (TPG *this, unsigned bufferId) |
| Sets the buffer indicated by bufferId to 0. | |
| unsigned | TPGsetTEM (TPG *this, unsigned tem_id, unsigned trg, unsigned start, unsigned pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into the channel and buffer indicated by tem_id and trg. | |
| unsigned | TPGsetVETO (TPG *this, unsigned free_id, unsigned veto_id, unsigned start, unsigned pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into the channel and buffer indicated by free_id and veto_id. | |
| unsigned | TPGsetCNO (TPG *this, unsigned free_id, unsigned start, unsigned pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into the channel and buffer indicated by free_id and veto_id. | |
| unsigned | TPGsetExtTrig (TPG *this, unsigned start, unsigned pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into the external trigger buffer. | |
| unsigned | TPGsetTEMv (TPG *this, unsigned tem_id, unsigned trg, unsigned start, unsigned *pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into the channel and buffer indicated by tem_id and trg. | |
| unsigned | TPGsetVETOv (TPG *this, unsigned free_id, unsigned veto_id, unsigned start, unsigned *pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into the channel and buffer indicated by free_id and veto_id. | |
| unsigned | TPGsetCNOv (TPG *this, unsigned free_id, unsigned start, unsigned *pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into the channel and buffer indicated by free_id and veto_id. | |
| unsigned | TPGsetExtTrigv (TPG *this, unsigned start, unsigned *pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into the external trigger buffer. | |
| unsigned | TPGdelay (TPG *this, int gtbId, int clkDelay) |
| Delay the COMM I/O board start by n clocks. | |
| unsigned | TPGload (TPG *this, unsigned char *clkDelay) |
| Use Programmed I/O to fill the COMM board FIFOs. | |
| unsigned | TPGarm (TPG *this, gtbTrig_t trig) |
| Use unknown. | |
| unsigned | TPGgemStart (TPG *this) |
| Use unknown. | |
| unsigned | TPGstartCmd (TPG *this) |
| Use unknown. | |
| unsigned | TPGstartVME (TPG *this) |
| Use unknown. | |
| unsigned | TPGstart (TPG *this) |
| Start the playback. | |
| unsigned | TPGdumpTEM (TPG *this, unsigned start, unsigned len) |
| Print out the bit patterns in the TEM buffer. | |
| unsigned | TPGdumpFREE (TPG *this, unsigned free_id, unsigned start, unsigned len) |
| Print out the bit patterns in the free board. | |
| unsigned | TPGdumpCNO (TPG *this, unsigned start, unsigned len) |
| Print out the bit patterns in the CNO buffer. | |
| unsigned | TPGdump (TPG *this, unsigned boardId, unsigned start, unsigned len) |
| Print out the bit patterns in the requested board. | |
| unsigned | _checkBounds (unsigned start, unsigned pat_len, unsigned repetitions) |
| Checks that the requested addition to the buffer does not exceed the boundaries. | |
| void | _setBits (unsigned *fifo, unsigned channel, unsigned start, unsigned pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into channel and in buffer indicated by board. | |
| void | _setSticky (unsigned *fifo, unsigned channel) |
| Sets the last bit of channel in fifo. | |
| void | _clrSticky (unsigned *fifo, unsigned channel) |
| Clears the last bit of channel in fifo. | |
| void | _setBitsv (unsigned *fifo, unsigned channel, unsigned start, unsigned *pattern, unsigned pat_len, unsigned repetitions) |
| Places the pat_len LSBs of pattern into channel and in buffer indicated by board. | |
| int | TPGmsgInit (void) |
| Starts a simple printf MSG processor. | |
| unsigned | TPGsetTEMsticky (TPG *this, unsigned tem_id, unsigned trg) |
| Sets the last bit of the buffer, which will "stick" on the COMM I/O outputs. | |
| unsigned | TPGclrTEMsticky (TPG *this, unsigned tem_id, unsigned trg) |
| Clears the last bit of the buffer, which will "stick" on the COMM I/O outputs. | |
| unsigned | TPGsetVETOsticky (TPG *this, unsigned free_id, unsigned veto_id) |
| Sets the last bit of the buffer, which will "stick" on the COMM I/O outputs. | |
| unsigned | TPGclrVETOsticky (TPG *this, unsigned free_id, unsigned veto_id) |
| Clears the last bit of the buffer, which will "stick" on the COMM I/O outputs. | |
| unsigned | TPGsetCNOsticky (TPG *this, unsigned free_id) |
| Clears the last bit of the buffer, which will "stick" on the COMM I/O outputs. | |
| unsigned | TPGclrCNOsticky (TPG *this, unsigned free_id) |
| Clears the last bit of the buffer, which will "stick" on the COMM I/O outputs. | |
| void | TPGfifoStatShow (TPG *this) |
| Use unknown. | |
| void | TPGgtbTrigClk (TPG *this, int rising) |
| Use unknown. | |
| void | TPGgtbSetupShow (TPG *this) |
| Use unknown. | |
| void | TPGsetTimeInParms (TPG *this, int temStart, int temPat, int temLen, int temReps, int temInc, int freeStart, int freePat, int freeLen, int freeReps, int freeInc) |
| Use unknown. | |
| void | TPGgtbTimeInDelayChan (TPG *this, int tem, int chan, int delay) |
| Use unknown. | |
| void | TPGgtbTimeInCmd (TPG *this) |
| Use unknown. | |
| void | TPGgtbHwCmdCheck (TPG *this, unsigned int pattern, int readback) |
| Use unknown. | |
| void | TPGshow (TPG *this, unsigned detail) |
| Use unknown. | |
Variables | |
| unsigned | TPG_BUSY = 0 |
| Use unknown. | |
| unsigned | TPG_TIAR = 1 |
| Use unknown. | |
| unsigned | TPG_CALHI = 2 |
| Use unknown. | |
| unsigned | TPG_CALLO = 3 |
| Use unknown. | |
| unsigned | TPG_N_TRG = 4 |
| Use unknown. | |
| unsigned | TPG_TEM_BOARD = -1 |
| Use unknown. | |
| unsigned | TPG_LASTWORD = TPG_BUFFER_DEPTH - sizeof(unsigned) |
| Use unknown. | |
| unsigned | tpgDebug = TPG_DEBUG_NONE |
| Use unknown. | |
| unsigned | tpgCachedCnt = 0 |
| Use unknown. | |
| unsigned | tpgFifoBugOffset = 2 |
| Use unknown. | |
| int | tpgTemPat = 0x80000003 |
| Use unknown. | |
| int | tpgFreePat = 0xa0000003 |
| Use unknown. | |
| int | tpgTemStart = 0 |
| Use unknown. | |
| int | tpgFreeStart = 0 |
| Use unknown. | |
| int | tpgTemLen = 32 |
| Use unknown. | |
| int | tpgFreeLen = 32 |
| Use unknown. | |
| int | tpgTemReps = 0 |
| Use unknown. | |
| int | tpgFreeReps = 0 |
| Use unknown. | |
| int | tpgTemInc = 0 |
| Use unknown. | |
| int | tpgFreeInc = 0 |
| Use unknown. | |
| int | tpgTemChanDelay [18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
| Use unknown. | |
| int | tpgFreeChanDelay [18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} |
| Use unknown. | |
|
||||||||||||||||
|
Checks that the requested addition to the buffer does not exceed the boundaries.
|
|
||||||||||||
|
Clears the last bit of channel in fifo.
|
Here is the call graph for this function:

|
||||||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into channel and in buffer indicated by board.
|
Here is the call graph for this function:

|
||||||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into channel and in buffer indicated by board.
|
Here is the call graph for this function:

|
||||||||||||
|
Sets the last bit of channel in fifo.
|
Here is the call graph for this function:

|
||||||||||||
|
Use unknown.
|
Here is the call graph for this function:

|
|
Sets all the buffers to 0.
|
Here is the call graph for this function:

|
||||||||||||
|
Sets the buffer indicated by bufferId to 0.
|
|
||||||||||||
|
Clears the last bit of the buffer, which will "stick" on the COMM I/O outputs.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Clears the last bit of the buffer, which will "stick" on the COMM I/O outputs.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Clears the last bit of the buffer, which will "stick" on the COMM I/O outputs.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Delay the COMM I/O board start by n clocks.
|
|
||||||||||||||||||||
|
Print out the bit patterns in the requested board.
|
|
||||||||||||||||
|
Print out the bit patterns in the CNO buffer.
|
Here is the call graph for this function:

|
||||||||||||||||||||
|
Print out the bit patterns in the free board.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Print out the bit patterns in the TEM buffer.
|
Here is the call graph for this function:

|
|
Use unknown.
|
Here is the call graph for this function:

|
|
Use unknown.
|
|
||||||||||||||||
|
Use unknown.
|
Here is the call graph for this function:

|
||||||||||||
|
Test for board presence.
|
Here is the call graph for this function:

|
|
Use unknown.
|
Here is the call graph for this function:

|
|
Use unknown.
|
Here is the call graph for this function:

|
||||||||||||||||||||
|
Use unknown.
|
|
||||||||||||
|
Use unknown.
|
Here is the call graph for this function:

|
||||||||||||
|
Use Programmed I/O to fill the COMM board FIFOs.
|
Here is the call graph for this function:

|
|
Starts a simple printf MSG processor.
|
|
|
Use unknown.
|
|
|
Calls calloc to allocate memory for the struct and associated buffers then sets the buffer pointers to the correct offsets.
|
|
||||||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into the channel and buffer indicated by free_id and veto_id.
|
Here is the call graph for this function:

|
||||||||||||
|
Clears the last bit of the buffer, which will "stick" on the COMM I/O outputs.
|
Here is the call graph for this function:

|
||||||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into the channel and buffer indicated by free_id and veto_id.
|
Here is the call graph for this function:

|
||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into the external trigger buffer.
|
Here is the call graph for this function:

|
||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into the external trigger buffer.
|
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into the channel and buffer indicated by tem_id and trg.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Sets the last bit of the buffer, which will "stick" on the COMM I/O outputs.
|
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into the channel and buffer indicated by tem_id and trg.
|
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Use unknown.
|
|
||||||||||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into the channel and buffer indicated by free_id and veto_id.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Sets the last bit of the buffer, which will "stick" on the COMM I/O outputs.
|
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||
|
Places the pat_len LSBs of pattern into the channel and buffer indicated by free_id and veto_id.
|
Here is the call graph for this function:

|
||||||||||||
|
Use unknown.
|
|
|
Start the playback.
|
Here is the call graph for this function:

|
|
Use unknown.
|
Here is the call graph for this function:

|
|
Use unknown.
|
Here is the call graph for this function:

|
|
Use unknown.
|
|
|
Use unknown. Channel number for the TEM BUSY signal |
|
|
Use unknown. Channel number for the TEM CAL HE signal |
|
|
Use unknown. Channel number for the TEM CAL LE signal |
|
|
Use unknown. first bit of last word of a pattern |
|
|
Use unknown. Total number of TEM triggers |
|
|
Use unknown. Channel number for the TEM Three-in-a-row signal |
1.3.3