GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LEM_DB / dev > lem_db_server / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

schema.h File Reference

CDM database schema: settings for LEM. More...


Classes

struct  LEM_DB_wait
 Structure laying out the sections of the LAT having unique wait times. More...
struct  LEM_DB_Schema
 CDM database schema for LEM stall/timeout values. More...

Defines

#define LEM_DB_INSTANCE   (0)
#define LEM_DB_SCHEMA   (65)
#define LEM_DB_VERSION   (0)

Enumerations

enum  { LEM_DB_TCC_OFFSET = 4 }

Functions

unsigned LEM_DB_getTimeout (unsigned addr0, unsigned addr1, unsigned addr2, unsigned addr3, unsigned regId)
 Return the timeout value for reading from the selected register.
unsigned LEM_DB_getCmdStall (unsigned addr0, unsigned addr1, unsigned addr2, unsigned addr3, unsigned opCode)
 Return the stall value for sending a dataless command.
unsigned LEM_DB_getLoadStall (unsigned addr0, unsigned addr1, unsigned addr2, unsigned addr3, unsigned regId)
 Return the stall value for loading the selected register.
unsigned LEM_DB_getBcastStall (unsigned addr0, unsigned addr1, unsigned addr2, unsigned addr3, unsigned regId)
 Return the stall value for Broadcasting to the selected registers.
unsigned LEM_DB_getLamStall (void)
 Get the stall time for the look-at-me command.


Detailed Description

CDM database schema: settings for LEM.

CVS $Id: schema.h,v 1.1.1.1 2005/11/09 23:30:58 jswain Exp $
Author:
jswain@slac.stanford.edu

Enumeration Type Documentation

anonymous enum

Enumerator:
LEM_DB_TCC_OFFSET  Offset added to TCC ID to seperate the CCC and TCC address spaces


Function Documentation

unsigned LEM_DB_getBcastStall ( unsigned  addr0,
unsigned  addr1,
unsigned  addr2,
unsigned  addr3,
unsigned  regId 
)

Return the stall value for Broadcasting to the selected registers.

Parameters:
addr0 First component of the register address
addr1 Second component of the register address (or -1)
addr2 Third component of the register address (or -1)
addr3 Forth component of the register address (or -1)
regId ID of the register
Returns:
Stall value to use in a load command item.

References getWait(), and getWdbBcaststall().

unsigned LEM_DB_getCmdStall ( unsigned  addr0,
unsigned  addr1,
unsigned  addr2,
unsigned  addr3,
unsigned  opCode 
)

Return the stall value for sending a dataless command.

Parameters:
addr0 First component of the register address
addr1 Second component of the register address (or -1)
addr2 Third component of the register address (or -1)
addr3 Forth component of the register address (or -1)
opCode op-code of the dataless command
Returns:
Stall value to use in a dataless command item.

References getWait(), and getWdbCmdstall().

unsigned LEM_DB_getLamStall ( void   ) 

Get the stall time for the look-at-me command.

Return values:
The stall after sending a look-at-me

References LEM_DB_Schema::lamstall.

unsigned LEM_DB_getLoadStall ( unsigned  addr0,
unsigned  addr1,
unsigned  addr2,
unsigned  addr3,
unsigned  regId 
)

Return the stall value for loading the selected register.

Parameters:
addr0 First component of the register address
addr1 Second component of the register address (or -1)
addr2 Third component of the register address (or -1)
addr3 Forth component of the register address (or -1)
regId ID of the register
Returns:
Stall value to use in a load command item.

References getWait(), and getWdbLoadstall().

unsigned LEM_DB_getTimeout ( unsigned  addr0,
unsigned  addr1,
unsigned  addr2,
unsigned  addr3,
unsigned  regId 
)

Return the timeout value for reading from the selected register.

Parameters:
addr0 First component of the register address
addr1 Second component of the register address (or -1)
addr2 Third component of the register address (or -1)
addr3 Forth component of the register address (or -1)
regId ID of the register
Returns:
Timeout value to use in a read command item.

References getWait(), and getWdbTimeout().


Generated on Thu Mar 24 18:30:53 2011 by  doxygen 1.5.8