GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCBT / V1-4-1

Constituent: lcbt     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

LCBT_cmdLocal.c File Reference

LCB Local Cmd/Response exercise tests. More...

#include "LCBT/LCBT.h"
#include "LCBD/LCB_cr.h"
#include "PBS/MBA.h"
#include "LCBT_printf.h"

Include dependency graph for LCBT_cmdLocal.c:

Include dependency graph

Functions

unsigned int LCBT_readLatpCsr ()
 read LATp CSR register (requires a DMA)

unsigned int LCBT_readFifoFault ()
 read Fifo Fault registers (requires a DMA)

unsigned int LCBT_writeLatpCsr (unsigned int data, unsigned int mask)
 write LATp CSR register (requires a DMA)

unsigned int LCBT_writeFifoFault (unsigned int data, unsigned int mask)
 write Fifo Fault register (requires a DMA)

void LCBT_latReset (unsigned int stall)
 sends LAT reset (requires a DMA)

unsigned int LCBT_readStats ()
 read stats register (requires a DMA)

unsigned int LCBT_writeStats (unsigned int data, unsigned int mask)
 write Stats register (requires a DMA)

int LCBT_cmdLocalTest (int num, TDATA_DTEST testType, unsigned int testParm)
 read-only test on LCB local registers that require Cmd list DMA

int LCBT_cmdLocalTest2 (int num, TDATA_DTEST testType, unsigned int testParm)
 2 task read test on LCB local registers that require Cmd list DMA

int LCBT_cmdLocalTest3 (int num, TDATA_DTEST testType, unsigned int testParm)
 3 task read test on LCB local registers that require Cmd list DMA


Detailed Description

LCB Local Cmd/Response exercise tests.

Author:
Ed Bacho -- ebacho@slac.stanford.edu
These tests access only the LCB-resident registers that must be accessed through a DMA (i.e. they are in the LATp FPGA, or LATp side of the board.

Function Documentation

int LCBT_cmdLocalTest int  num,
TDATA_DTEST  testType,
unsigned int  testParm
 

read-only test on LCB local registers that require Cmd list DMA

Parameters:
num Number of accesses to do in the test
testType Specifies the data sequence for test
testParm Parm to use with testType
Returns:
total errs

Here is the call graph for this function:

int LCBT_cmdLocalTest2 int  num,
TDATA_DTEST  testType,
unsigned int  testParm
 

2 task read test on LCB local registers that require Cmd list DMA

Parameters:
num Number of accesses to do in the test
testType Specifies the data sequence for test
testParm Parm to use with testType
Returns:
total errs
This is similar to LCBT_cmdLocalTest except that two tasks are spawned and do the test concurrently.

Here is the call graph for this function:

int LCBT_cmdLocalTest3 int  num,
TDATA_DTEST  testType,
unsigned int  testParm
 

3 task read test on LCB local registers that require Cmd list DMA

Parameters:
num Number of accesses to do in the test
testType Specifies the data sequence for test
testParm Parm to use with testType
Returns:
total errs
This is similar to LCBT_cmdLocalTest except that three tasks are spawned and do the test concurrently.

Here is the call graph for this function:

void LCBT_latReset unsigned int  stall  ) 
 

sends LAT reset (requires a DMA)

Parameters:
stall stall after reset in 50 nSec tics
Returns:
status
To be used with great discretion, i.e. in case of emergency break glass.

unsigned int LCBT_readFifoFault  ) 
 

read Fifo Fault registers (requires a DMA)

Returns:
value in register

unsigned int LCBT_readLatpCsr  ) 
 

read LATp CSR register (requires a DMA)

Returns:
value in register

unsigned int LCBT_readStats  ) 
 

read stats register (requires a DMA)

Returns:
value in register

unsigned int LCBT_writeFifoFault unsigned int  data,
unsigned int  mask
 

write Fifo Fault register (requires a DMA)

Parameters:
data value to write to register
mask mask of bits to write, if 0 will default to full register
Returns:
value in register

unsigned int LCBT_writeLatpCsr unsigned int  data,
unsigned int  mask
 

write LATp CSR register (requires a DMA)

Parameters:
data value to write to register
mask mask of bits to write, if 0 will default to full register
Returns:
value in register

unsigned int LCBT_writeStats unsigned int  data,
unsigned int  mask
 

write Stats register (requires a DMA)

Parameters:
data value to write to register
mask mask of bits to write, if 0 will default to full register
Returns:
value in register


Generated on Wed Jan 19 21:28:55 2005 by doxygen 1.3.3