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

Constituent: lcbbEcho     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

LCBT_lcbb.h File Reference

Test for LCBB boot driver. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Defines

#define LCBTB_STALL   (0)
 standard stall value for register access, possible use in testing


Typedefs

typedef enum _LCBTB_OPTION LCBTB_OPTION
 Masks for test option mask (boot driver).


Enumerations

enum  _LCBTB_OPTION {
  LCBTB_OPTION_BUSYPRINT = 1,
  LCBTB_OPTION_VERBOSE = 2,
  LCBTB_OPTION_COMPARE_FOR_ECHO = 0x20
}

Functions

int LCBTB_init (int latpAddr, int useRedundantPath)
 inits LCBB boot driver

void LCBTB_setSiu (int idx)
 Set boardID in Csr to SIU addr.

void LCBTB_setEpu (int idx)
 Set boardID in Csr to EPU addr.

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

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

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

unsigned int LCBTB_readFifoFault ()
 read Fifo fault register (requires a DMA)

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

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

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

void LCBTB_regs ()
 Readall regs.

void LCBTB_setOption (unsigned int mask)
 set test option mask, see LCBT.h for values

int LCBTB_echo (int numMsg)
 single task message echo server using boot driver


Detailed Description

Test for LCBB boot driver.

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

    These routines are for testing the LCBB driver by setting it up as an echo server.
   
    The subroutines are structured to be used thru the WindSh rather than
    be called by other progs. They assume a single LCB board.


Enumeration Type Documentation

enum _LCBTB_OPTION
 

Enumeration values:
LCBTB_OPTION_BUSYPRINT  print count every 1000 accesses
LCBTB_OPTION_VERBOSE  lots of printouts
LCBTB_OPTION_COMPARE_FOR_ECHO  use compare server for echo server


Function Documentation

int LCBTB_echo int  numMsg  ) 
 

single task message echo server using boot driver

Parameters:
numMsg number of messages to process, 0=forever
Returns:
status
THis function is used to test the boot driver. It will just echo back any messages received. Since it is the boot driver, it does not use interrupts. It is a single task which polls for a message.

Note that the sending CPU does not need to be runnning the boot driver (or even jj's driver). The intent was that the other CPU could be running LCBT_eventTest().

Here is the call graph for this function:

int LCBTB_init int  latpAddr,
int  useRedundantPath
 

inits LCBB boot driver

Parameters:
latpAddr LATp addr to assign to this board, 0=uses boardId as set
useRedundantPath 0=normal path, 1=redundant path
Returns:
status

void LCBTB_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 LCBTB_readFifoFault  ) 
 

read Fifo fault register (requires a DMA)

Returns:
value in register

unsigned int LCBTB_readLatpCsr  ) 
 

read LATp CSR register (requires a DMA)

Returns:
value in register

unsigned int LCBTB_readStats  ) 
 

read stats register (requires a DMA)

Returns:
value in register

void LCBTB_regs  ) 
 

Readall regs.

Returns:
none

Here is the call graph for this function:

void LCBTB_setEpu int  idx  ) 
 

Set boardID in Csr to EPU addr.

Parameters:
idx which EPU,0=EPU0,1=EPU1,2=EPU3
Returns:
none

void LCBTB_setOption unsigned int  mask  ) 
 

set test option mask, see LCBT.h for values

Parameters:
mask mask of tests options
Returns:
none

void LCBTB_setSiu int  idx  ) 
 

Set boardID in Csr to SIU addr.

Parameters:
idx which SIU,0=SIU0,1=SIU1
Returns:
none

unsigned int LCBTB_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 LCBTB_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 LCBTB_writeStats 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


Generated on Wed Dec 15 03:06:25 2004 by doxygen 1.3.3