GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LEM_DB / V0-1-4

Constituent: lem_db_server     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

server.c File Reference

Handles requests for stall times from the LEM database. More...

#include "CDM/CDM_pubdefs.h"
#include "LEM_DB/schema.h"

Include dependency graph for server.c:


Typedefs

typedef LEM_DB_wait *(* pGetWdb )(LEM_DB_Schema *ldb)
 Return one of the LEM_DB_wait sub-structures of the LEM_DB_Schema.

Enumerations

enum  {
  LATP_ID_TEM_0 = 0x00,
  LATP_ID_TEM_1 = 0x01,
  LATP_ID_TEM_2 = 0x02,
  LATP_ID_TEM_3 = 0x03,
  LATP_ID_TEM_4 = 0x04,
  LATP_ID_TEM_5 = 0x05,
  LATP_ID_TEM_6 = 0x06,
  LATP_ID_TEM_7 = 0x07,
  LATP_ID_TEM_8 = 0x08,
  LATP_ID_TEM_9 = 0x09,
  LATP_ID_TEM_A = 0x0a,
  LATP_ID_TEM_B = 0x0b,
  LATP_ID_TEM_C = 0x0c,
  LATP_ID_TEM_D = 0x0d,
  LATP_ID_TEM_E = 0x0e,
  LATP_ID_TEM_F = 0x0f,
  LATP_ID_GEM = 0x10,
  LATP_ID_AEM = 0x11,
  LATP_ID_EBM = 0x12,
  LATP_ID_PDU_0 = 0x13,
  LATP_ID_PDU_1 = 0x14,
  LATP_ID_CRU = 0x1E
}

Functions

LEM_DB_waitgetWdbTimeout (LEM_DB_Schema *ldb)
 Return a pointer to the LEM_DB_wait structure holding the timeout values.
LEM_DB_waitgetWdbCmdstall (LEM_DB_Schema *ldb)
 Return a pointer to the LEM_DB_wait structure holding the command stall values.
LEM_DB_waitgetWdbLoadstall (LEM_DB_Schema *ldb)
 Return a pointer to the LEM_DB_wait structure holding the load stall values.
LEM_DB_waitgetWdbBcaststall (LEM_DB_Schema *ldb)
 Return a pointer to the LEM_DB_wait structure holding the broadcast stall values.
unsigned getWait (pGetWdb getWdb, unsigned addr0, unsigned addr1, unsigned addr2, unsigned addr3, unsigned id)
 Extract the wait time for a particular register from one of the LEM_DB_wait sub-structures held in the LEM_DB.
static unsigned getAemWait (LEM_DB_wait *wait, unsigned addr1, unsigned addr2, unsigned addr3, unsigned id)
 Extract the wait time for an ACD register from one of the LEM_DB_wait sub-structures held in the LEM_DB.
static unsigned getTemWait (LEM_DB_wait *wait, unsigned addr1, unsigned addr2, unsigned addr3, unsigned id)
 Extract the wait time for a TKR or CAL register from one of the LEM_DB_wait sub-structures held in the LEM_DB.
static unsigned getTkrWait (LEM_DB_wait *wait, unsigned addr1, unsigned addr2, unsigned addr3, unsigned id)
 Extract the wait time for a TKR register from one of the LEM_DB_wait sub-structures held in the LEM_DB.
static unsigned getCalWait (LEM_DB_wait *wait, unsigned addr1, unsigned addr2, unsigned addr3, unsigned id)
 Extract the wait time for a CAL register from one of the LEM_DB_wait sub-structures held in the LEM_DB.
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

Handles requests for stall times from the LEM database.

CVS $Id: server.c,v 1.2 2006/02/21 20:34:54 jswain Exp $
Author:
J.Swain

Function Documentation

unsigned getAemWait LEM_DB_wait wait,
unsigned  addr1,
unsigned  addr2,
unsigned  addr3,
unsigned  id
[inline, static]
 

Extract the wait time for an ACD register from one of the LEM_DB_wait sub-structures held in the LEM_DB.

Parameters:
wait Pointer to the LEM_DB_wait structure
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)
id Register ID or op-code
Returns:
Wait time for the register

unsigned getCalWait LEM_DB_wait wait,
unsigned  addr1,
unsigned  addr2,
unsigned  addr3,
unsigned  id
[inline, static]
 

Extract the wait time for a CAL register from one of the LEM_DB_wait sub-structures held in the LEM_DB.

Parameters:
wait Pointer to the LEM_DB_wait structure
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)
id Register ID or op-code
Returns:
Wait time for the register

unsigned getTemWait LEM_DB_wait wait,
unsigned  addr1,
unsigned  addr2,
unsigned  addr3,
unsigned  id
[inline, static]
 

Extract the wait time for a TKR or CAL register from one of the LEM_DB_wait sub-structures held in the LEM_DB.

Parameters:
wait Pointer to the LEM_DB_wait structure
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)
id Register ID or op-code
Returns:
Wait time for the register

unsigned getTkrWait LEM_DB_wait wait,
unsigned  addr1,
unsigned  addr2,
unsigned  addr3,
unsigned  id
[inline, static]
 

Extract the wait time for a TKR register from one of the LEM_DB_wait sub-structures held in the LEM_DB.

Parameters:
wait Pointer to the LEM_DB_wait structure
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)
id Register ID or op-code
Returns:
Wait time for the register

unsigned getWait pGetWdb  getWdb,
unsigned  addr0,
unsigned  addr1,
unsigned  addr2,
unsigned  addr3,
unsigned  id
 

Extract the wait time for a particular register from one of the LEM_DB_wait sub-structures held in the LEM_DB.

Parameters:
getWdb Pointer to a function that extracts one of the LEM_DB_wait sub-structures from the LEM_DB
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)
id Register ID or op-code
Returns:
Wait time for the register

LEM_DB_wait * getWdbBcaststall LEM_DB_Schema ldb  ) 
 

Return a pointer to the LEM_DB_wait structure holding the broadcast stall values.

Returns:
Pointer to a LEM_DB_wait structure holding the broadcast stall values
Parameters:
ldb Pointer to a LEM_DB

LEM_DB_wait * getWdbCmdstall LEM_DB_Schema ldb  ) 
 

Return a pointer to the LEM_DB_wait structure holding the command stall values.

Returns:
Pointer to a LEM_DB_wait structure holding the command stall values
Parameters:
ldb Pointer to a LEM_DB

LEM_DB_wait * getWdbLoadstall LEM_DB_Schema ldb  ) 
 

Return a pointer to the LEM_DB_wait structure holding the load stall values.

Returns:
Pointer to a LEM_DB_wait structure holding the load stall values
Parameters:
ldb Pointer to a LEM_DB

LEM_DB_wait * getWdbTimeout LEM_DB_Schema ldb  ) 
 

Return a pointer to the LEM_DB_wait structure holding the timeout values.

Returns:
Pointer to a LEM_DB_wait structure holding the timeout values
Parameters:
ldb Pointer to a LEM_DB

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.

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.

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

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.

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.


Generated on Wed Mar 29 20:22:11 2006 by  doxygen 1.4.4