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_reg.c File Reference

LCB PCI-side Register exercise tests. More...

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

Include dependency graph for LCBT_reg.c:

Include dependency graph

Functions

int LCBT_localRegTest (int num, TDATA_DTEST testType, unsigned int testParm)
 Read/write/compare test on all PCI accessable registers on LCB board.

unsigned int LCBT_readCsr ()
 Read CSR register.

unsigned int LCBT_readIrq ()
 Read IRQ register which has interrupt status.

unsigned int LCBT_readFabricSelect ()
 Read FabricSelect register which indicates primary or redundant.

unsigned int LCBT_readEventBase ()
 Read Event Base register which is start of Event circular buffer.

unsigned int LCBT_readEventFree ()
 Read Event Free register which is offset in Event circular buffer HW will write to.

unsigned int LCBT_readEventQ ()
 Read eventQueue NOTE this will pull value from queue and effect operation.

unsigned int LCBT_readResultQ ()
 Read resultQueue NOTE this will pull value from queue and effect operation.

unsigned int LCBT_readRequestQ ()
 Read requestQueue, 0=notEMpty, not0=empty NOTE this will pull value from queue and effect operation.

void LCBT_readHwInfo ()
 Read hwInfo register.

unsigned int LCBT_writeCsr (unsigned int data)
 Write given value to register.

unsigned int LCBT_writeIrq (unsigned int data)
 Write given value to register.

unsigned int LCBT_writeEventBase (unsigned int data)
 Write given value to register.

unsigned int LCBT_writeEventFree (unsigned int data)
 Write given value to register.

unsigned int LCBT_writeFabricSelect (unsigned int data)
 Write given value to register.

unsigned int LCBT_setWatermark (unsigned int val)
 Write the watermark field in the CSR.


Detailed Description

LCB PCI-side Register exercise tests.

Author:
Ed Bacho -- ebacho@slac.stanford.edu

Function Documentation

int LCBT_localRegTest int  num,
TDATA_DTEST  testType,
unsigned int  testParm
 

Read/write/compare test on all PCI accessable registers on LCB board.

Parameters:
num Number of events to do in the test
testType Specified the data sequence used for test data
testParm Parm to use with testType
Returns:
none

Here is the call graph for this function:

LCBT_readCsr  ) 
 

Read CSR register.

Returns:
Value of register

LCBT_readEventBase  ) 
 

Read Event Base register which is start of Event circular buffer.

Returns:
Value of register

LCBT_readEventFree  ) 
 

Read Event Free register which is offset in Event circular buffer HW will write to.

Returns:
Value of register

LCBT_readEventQ  ) 
 

Read eventQueue NOTE this will pull value from queue and effect operation.

Returns:
Value of register

LCBT_readFabricSelect  ) 
 

Read FabricSelect register which indicates primary or redundant.

Returns:
Value of register, 0=promary, 1=redundant

LCBT_readHwInfo  ) 
 

Read hwInfo register.

Returns:
Value of register

LCBT_readIrq  ) 
 

Read IRQ register which has interrupt status.

Returns:
Value of register

LCBT_readRequestQ  ) 
 

Read requestQueue, 0=notEMpty, not0=empty NOTE this will pull value from queue and effect operation.

Returns:
Value of register

LCBT_readResultQ  ) 
 

Read resultQueue NOTE this will pull value from queue and effect operation.

Returns:
Value of register

LCBT_setWatermark unsigned int  val  ) 
 

Write the watermark field in the CSR.

Parameters:
val 0=3/4 full,1=1/2 full, 2=1/4 full, 3=notEmpty
Returns:
Value of csr register

LCBT_writeCsr unsigned int  data  ) 
 

Write given value to register.

Parameters:
data value to write to register
Returns:
Value of register

LCBT_writeEventBase unsigned int  data  ) 
 

Write given value to register.

Parameters:
data value to write to register
Returns:
Value of register

LCBT_writeEventFree unsigned int  data  ) 
 

Write given value to register.

Parameters:
data value to write to register
Returns:
Value of register

LCBT_writeFabricSelect unsigned int  data  ) 
 

Write given value to register.

Parameters:
data value to write to register
Returns:
Value of register

LCBT_writeIrq unsigned int  data  ) 
 

Write given value to register.

Parameters:
data value to write to register
Returns:
Value of register


Generated on Wed Jan 19 21:29:31 2005 by doxygen 1.3.3