GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCBT / V1-6-2 > lcbt / rad750


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>

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

References LCBT_printErrorDeltas(), and LCBT_saveErrorForDeltas().

Referenced by LCBT_comboTest().

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.

References LCBT_printErrorDeltas(), and LCBT_saveErrorForDeltas().

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.

References LCBT_printErrorDeltas(), and LCBT_saveErrorForDeltas().

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.

References EPRINTF.

int LCBT_readFifoFault (  ) 

read Fifo Fault registers (requires a DMA)

Returns:
value in register

References EPRINTF, LCBT_STALL, and PRINTF.

Referenced by LCBT_regs().

int LCBT_readLatpCsr (  ) 

read LATp CSR register (requires a DMA)

Returns:
value in register

References EPRINTF, LCBT_STALL, and PRINTF.

Referenced by LCBT_regs().

int LCBT_readStats (  ) 

read stats register (requires a DMA)

Returns:
value in register

References EPRINTF, LCBT_STALL, and PRINTF.

Referenced by LCBT_regs().

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

References EPRINTF, and LCBT_STALL.

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

References EPRINTF, and LCBT_STALL.

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

References EPRINTF, and LCBT_STALL.


Generated on Fri Mar 25 12:53:43 2011 by  doxygen 1.5.8