GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CPU_DB / V0-2-5

Constituent: cpu_db_server     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

CPU_DB_pubdefs.h File Reference

Public definitions to access to configuration maintained by CPU_DB. More...

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


Typedefs

typedef enum _CPU_DB_Type CPU_DB_Type
 Typedef for enum _CPU_DB_Type.
typedef enum _CPU_DB_TaskID CPU_DB_TaskID
 Typedef for enum _CPU_DB_TaskID.

Enumerations

enum  _CPU_DB_Type {
  CPU_DB_TYPE_NONE = 0,
  CPU_DB_TYPE_SIU = 1,
  CPU_DB_TYPE_EPU = 2,
  CPU_DB_TYPE_SC = 3
}
 Enumeration of possible types (or roles) for a CPU. More...
enum  _CPU_DB_TaskID {
  CPU_DB_TID_LCM = 1,
  CPU_DB_TID_LCM_M = 1,
  CPU_DB_TID_LFS = 2,
  CPU_DB_TID_LFS_M = 2,
  CPU_DB_TID_LFS_S = 3,
  CPU_DB_TID_LHK_M = 4,
  CPU_DB_TID_LHK_S = 5,
  CPU_DB_TID_LIM = 6,
  CPU_DB_TID_LIM_M = 6,
  CPU_DB_TID_LIM_S = 7,
  CPU_DB_TID_LSM_M = 8,
  CPU_DB_TID_LSM_S = 9,
  CPU_DB_TID_LSW = 10,
  CPU_DB_TID_LSW_M = 10,
  CPU_DB_TID_LSW_S = 11,
  CPU_DB_TID_LCI = 12,
  CPU_DB_TID_LCI_M = 12,
  CPU_DB_TID_LCI_S = 13,
  CPU_DB_TID_LMC = 14,
  CPU_DB_TID_LPA_M = 15,
  CPU_DB_TID_LPA_S = 16,
  CPU_DB_TID_LRA = 17,
  CPU_DB_TID_LTC = 18,
  CPU_DB_TID_GRB = 19,
  CPU_DB_TID_CRXC = 22,
  CPU_DB_TID_CRXT = 23,
  CPU_DB_TID_LRX = 24,
  CPU_DB_TID_LTX0 = 25,
  CPU_DB_TID_LTX1 = 26,
  CPU_DB_TID_LTX2 = 27,
  CPU_DB_TID_LTX3 = 28,
  CPU_DB_TID_CTX = 29,
  CPU_DB_TID_STX = 30,
  CPU_DB_TID_BCST = 31,
  CPU_DB_TID_MSG = 33,
  CPU_DB_TID_POLL = 34,
  CPU_DB_TID_IDLE = 35,
  CPU_DB_TID_LHK_C = 36,
  CPU_DB_TID_EFC = 37,
  CPU_DB_TID_EMP = 38,
  CPU_DB_TID_LCM_S = 39
}
 Enumeration of task identifiers. More...

Functions

const char * CPU_DB_getTaskName (CPU_DB_TaskID tid)
 Return a pointer to the task name for a given task ID.
int CPU_DB_getTaskPriority (CPU_DB_TaskID tid)
 Return the task priority for a given task ID.
CPU_DB_Type CPU_DB_getType (void)
 Return a pointer to the task name for a given task ID.

Detailed Description

Public definitions to access to configuration maintained by CPU_DB.

CVS $Id: CPU_DB_pubdefs.h,v 1.7 2006/05/24 22:56:14 apw Exp $
Author:
A.P.Waite

Enumeration Type Documentation

enum _CPU_DB_TaskID
 

Enumeration of task identifiers.

These numbers are forwarded to the ITC definitions of task IDs, and as such, must obey a couple of rules. Real ITC tasks must have IDs in the range 1-31. The ITC task ID 0 is reserved (for the "anonymous" task ... a notional target task for communications destined to either the spacecraft or the science data interface). ITC also reserves task ID -1 (it's used to indicate "no such task"). Non-ITC tasks (e.g. the MSG task) should be given task IDs of 32 and above.

Enumerator:
CPU_DB_TID_LCM_M  LAT computer manager
CPU_DB_TID_LFS  LAT computer manager (synonym)
CPU_DB_TID_LFS_M  LAT file system (synonym)
CPU_DB_TID_LFS_S  LAT file system (master)
CPU_DB_TID_LHK_M  LAT file system (slave)
CPU_DB_TID_LHK_S  LAT housekeeping (master)
CPU_DB_TID_LIM  LAT housekeeping (slave)
CPU_DB_TID_LIM_M  LAT instrument manager (synonym)
CPU_DB_TID_LIM_S  LAT instrument manager (master)
CPU_DB_TID_LSM_M  LAT instrument manager (slave)
CPU_DB_TID_LSM_S  LAT spacecraft messages (master)
CPU_DB_TID_LSW  LAT spacecraft messages (slave)
CPU_DB_TID_LSW_M  LAT software watchdog (synonym)
CPU_DB_TID_LSW_S  LAT software watchdog (master)
CPU_DB_TID_LCI  LAT software watchdog (slave)
CPU_DB_TID_LCI_M  LAT charge injection (synonym)
CPU_DB_TID_LCI_S  LAT charge injection (master)
CPU_DB_TID_LMC  LAT charge injection (slave)
CPU_DB_TID_LPA_M  LAT multiplex counters
CPU_DB_TID_LPA_S  LAT physics analysis (master)
CPU_DB_TID_LRA  LAT physics analysis (slave)
CPU_DB_TID_LTC  LAT register access
CPU_DB_TID_GRB  LAT thermal control
CPU_DB_TID_CRXC  LAT GRB analysis (slave)
CPU_DB_TID_CRXT  CTDB Rx task (telecommand)
CPU_DB_TID_LRX  CTDB Rx task (spacecraft sim only)
CPU_DB_TID_LTX0  LCB Rx task (reserved)
CPU_DB_TID_LTX1  LCB Tx task (CPU-CPU)
CPU_DB_TID_LTX2  LCB Tx task (CPU-CPU)(reserved)
CPU_DB_TID_LTX3  LCB Tx task (CPU-CPU)(reserved)
CPU_DB_TID_CTX  LCB Tx task (CPU-CPU)(reserved)
CPU_DB_TID_STX  CTDB Tx task
CPU_DB_TID_BCST  LCB Tx task (CPU-SDI)
CPU_DB_TID_MSG  LCB Tx task (CPU-CPU)(reserved)
CPU_DB_TID_POLL  Message task
CPU_DB_TID_IDLE  MON polling task
CPU_DB_TID_LHK_C  MON idle task
CPU_DB_TID_EFC  LAT housekeeping scheduler
CPU_DB_TID_EMP  Event filtering output compression
CPU_DB_TID_LCM_S  Event monitoring output compression LAT computer manager (slave)

enum _CPU_DB_Type
 

Enumeration of possible types (or roles) for a CPU.

Enumerator:
CPU_DB_TYPE_NONE  Guard value
CPU_DB_TYPE_SIU  CPU is type SIU
CPU_DB_TYPE_EPU  CPU is type EPU
CPU_DB_TYPE_SC  CPU is type SC (spacecraft)


Function Documentation

const char * CPU_DB_getTaskName CPU_DB_TaskID  tid  ) 
 

Return a pointer to the task name for a given task ID.

Return values:
x Pointer to task name
NULL No task name found
CPU_DB_getTaskName() returns a pointer to a task name for the given input task ID. NULL is returned if the task ID cannot be found.

int CPU_DB_getTaskPriority CPU_DB_TaskID  tid  ) 
 

Return the task priority for a given task ID.

Return values:
-1 Task priority not found
x Task priority
CPU_DB_getTaskPriority() returns the task priority for a given task ID. If a task priority cannot be found, -1 is returned.

CPU_DB_Type CPU_DB_getType void   ) 
 

Return a pointer to the task name for a given task ID.

Return values:
x CPU type (SIU, EPU, or SC)
CPU_DB_TYPE_NONE No type found (probably mising database)
CPU_DB_getType() returns the type of the calling CPU. CPU_DB_TYPE_NONE is returned if the type cannot be identified (usually means that the CPU database has not been loaded).


Generated on Tue May 30 20:22:58 2006 by  doxygen 1.4.4