GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CPU_DB / V0-4-4 > cpu_db_server / mv2304
Classes | |
struct | _CPU_DB_Bounds |
Structure incorporating both CPU/SDI protocol and extra context. More... | |
Defines | |
#define | CPU_DB_B_SERIAL (0x00) |
#define | CPU_DB_K_SERIAL (0x00) |
#define | CPU_DB_L_SERIAL (0xff) |
#define | CPU_DB_B_ITC (0x01) |
#define | CPU_DB_K_ITC (0x00) |
#define | CPU_DB_L_ITC (0x05) |
#define | CPU_DB_B_EBM (0x02) |
#define | CPU_DB_K_EBM (0x21) |
#define | CPU_DB_L_EBM (0x06) |
#define | CPU_DB_B_INSTRUMENT (0x03) |
#define | CPU_DB_K_INSTRUMENT (0x00) |
#define | CPU_DB_L_INSTRUMENT (0x10) |
#define | CPU_DB_L_MSG_TEXT (0x100) |
Typedefs | |
typedef struct _CPU_DB_Bounds | CPU_DB_Bounds |
Typedef for struct _CPU_DB_Bounds. | |
Functions | |
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. | |
void | CPU_DB_setSerial (unsigned char ser[4]) |
Set the serial number based on the decoded elements. | |
Variables | |
unsigned int | CPU_DB_msgCode |
Message code (most recent message). | |
char | CPU_DB_msgText [CPU_DB_L_MSG_TEXT] |
Message text (most recent message). |
CVS $Id: CPU_DB_prvdefs.h,v 1.4 2007/06/21 00:34:08 apw Exp $
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 |
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 |
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 |
CPU_DB_Type CPU_DB_getType | ( | ) |
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 |
void CPU_DB_setSerial | ( | unsigned char | ser[4] | ) |
Set the serial number based on the decoded elements.
ser | (in) Serial number elements. |
References CPU_DB_getType(), CPU_DB_msgCode, CPU_DB_msgText, CPU_DB_serial, CPU_DB_TYPE_EPU, CPU_DB_TYPE_SIU, _CPU_DB_Bounds::max, _CPU_DB_Bounds::min, and s_cpu.
Referenced by CPU_DB_initialize().