GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CPU_DB / V0-4-4 > cpu_db_server / rhel5-32
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_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_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_LIH = 20, CPU_DB_TID_CRXC = 22, CPU_DB_TID_CRXT = 23, CPU_DB_TID_LTX1 = 24, CPU_DB_TID_LTX0 = 25, CPU_DB_TID_LRXR = 26, CPU_DB_TID_LRXE = 27, CPU_DB_TID_LRXN = 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_EFC = 37, CPU_DB_TID_EMP = 38, CPU_DB_TID_LCM_S = 39, CPU_DB_TID_CTDB = 40, CPU_DB_TID_LCB = 41, CPU_DB_TID_TFFS_T = 44, CPU_DB_TID_ROOT_T = 45, CPU_DB_TID_LOG_T = 46, CPU_DB_TID_EXC_T = 47 } |
Enumeration of task identifiers. More... | |
Functions | |
unsigned int | CPU_DB_getEBM (void) |
Return the address of this CPU on the EBM. | |
unsigned int | CPU_DB_getInstrument (void) |
Return the instrument ID of this CPU. | |
unsigned int | CPU_DB_getNode (void) |
Return the ITC node of this CPU. | |
unsigned int | CPU_DB_getSerial (void) |
Return the (compound) CPU serial number. | |
unsigned int | CPU_DB_getSN (void) |
Return the "trivial" (simple) CPU serial number. | |
CPU_DB_TaskID | CPU_DB_getTaskID (const char *name) |
Return the (CPU_DB) task ID for the task with the given name. | |
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 the CPU type (SIU, EPU, or SC) as recorded in the CPU database. | |
unsigned int | CPU_DB_initialize (void) |
Initialize the CPU_DB system. | |
unsigned int | CPU_DB_reportOnce (void) |
Report the result of setting up the CPU serial numbers. |
CVS $Id: CPU_DB_pubdefs.h,v 1.14 2007/10/28 19:25:30 apw Exp $
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.
enum _CPU_DB_Type |
unsigned int CPU_DB_getEBM | ( | void | ) |
Return the address of this CPU on the EBM.
-1 | EBM address cannot be determined | |
x | EBM address |
References CPU_DB_serial.
unsigned int CPU_DB_getInstrument | ( | void | ) |
Return the instrument ID of this CPU.
-1 | Instrument cannot be determined | |
x | Instrument |
References CPU_DB_serial.
unsigned int CPU_DB_getNode | ( | void | ) |
Return the ITC node of this CPU.
-1 | ITC node cannot be determined | |
x | ITC node |
References CPU_DB_serial.
unsigned int CPU_DB_getSerial | ( | void | ) |
Return the (compound) CPU serial number.
-1 | CPU serial number cannot be determined | |
0 | CPU serial number has not been initialized | |
x | CPU serial number |
References CPU_DB_serial.
Referenced by CPU_DB_reportOnce().
unsigned int CPU_DB_getSN | ( | void | ) |
Return the "trivial" (simple) CPU serial number.
-1 | Trivial (simple) CPU serial number cannot be determined | |
x | Trivial (simple) CPU serial number |
References CPU_DB_serial.
CPU_DB_TaskID CPU_DB_getTaskID | ( | const char * | name | ) |
Return the (CPU_DB) task ID for the task with the given name.
name | Task name (as it appears in the CPU_DB task table) |
x | Task ID (from CPU_DB enumeration) | |
0 | No task ID found |
References _CPU_DB_TaskAttr::ID, _CPU_DB_TaskAttr::name, and _CPU_DB_Schema::taskList.
const char* CPU_DB_getTaskName | ( | CPU_DB_TaskID | tid | ) |
Return a pointer to the task name for a given task ID.
tid | Task ID (from CPU_DB enumeration) |
x | Pointer to task name | |
NULL | No task name found |
References _CPU_DB_TaskAttr::ID, _CPU_DB_TaskAttr::name, and _CPU_DB_Schema::taskList.
int CPU_DB_getTaskPriority | ( | CPU_DB_TaskID | tid | ) |
Return the task priority for a given task ID.
tid | Task ID (from CPU_DB enumeration) |
-1 | Task priority not found | |
x | Task priority |
References _CPU_DB_TaskAttr::ID, _CPU_DB_TaskAttr::priority, and _CPU_DB_Schema::taskList.
CPU_DB_Type CPU_DB_getType | ( | void | ) |
Return the CPU type (SIU, EPU, or SC) as recorded in the CPU database.
CPU_DB_TYPE_NONE | Could not identify CPU type (missing database?) | |
CPU_DB_TYPE_SIU | SIU | |
CPU_DB_TYPE_EPU | EPU | |
CPU_DB_TYPE_SC | SC |
References CPU_DB_TYPE_NONE, and _CPU_DB_Schema::type.
Referenced by CPU_DB_initialize(), and CPU_DB_setSerial().
unsigned int CPU_DB_initialize | ( | void | ) |
Initialize the CPU_DB system.
CPU_DB_initialize() initializes the CPU_DB system. This reduces to setting up the CPU serial number. This is the method for setting up a serial number on a unix host. It is pure fakery.
References CPU_DB_getType(), CPU_DB_serial, CPU_DB_TYPE_EPU, and CPU_DB_TYPE_SIU.
unsigned int CPU_DB_reportOnce | ( | void | ) |
Report the result of setting up the CPU serial numbers.
CPU_DB_SUCCESS | Always |
References CPU_DB_getSerial(), CPU_DB_msgCode, and CPU_DB_msgText.