GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CPU_DB / V0-4-4 > cpu_db_server / mv2304
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CPU_DB/CPU_DB_msgs.h>
#include <CPU_DB/CPU_DB_pubdefs.h>
#include <MDB/MDB_pubdefs.h>
#include <CPU_DB_prvdefs.h>
#include <CPU_DB_serial.c.ux-xxx-xxx>
Functions | |
unsigned int | CPU_DB_getEBM () |
Return the address of this CPU on the EBM. | |
unsigned int | CPU_DB_getInstrument () |
Return the instrument ID of this CPU. | |
unsigned int | CPU_DB_getNode () |
Return the ITC node of this CPU. | |
unsigned int | CPU_DB_getSerial () |
Return the (compound) CPU serial number. | |
unsigned int | CPU_DB_getSN () |
Return the "trivial" (simple) CPU serial number. | |
unsigned int | CPU_DB_reportOnce () |
Report the result of setting up the CPU serial numbers. | |
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). | |
static unsigned int | CPU_DB_serial |
CPU (compound) serial number. | |
static CPU_DB_Bounds | bounds [4] |
Boundary conditions on elements of the serial number. | |
static const char * | s_cpu [4] = { "SIU", "EPU0", "EPU1", "EPU2" } |
String constants used in error messages. |
CVS $Id: CPU_DB_serial.c,v 1.4 2011/03/25 00:33:37 apw Exp $
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.
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.
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().
static CPU_DB_Bounds bounds[4] [static] |
Initial value:
{ { CPU_DB_K_SERIAL , CPU_DB_K_SERIAL + CPU_DB_L_SERIAL }, { CPU_DB_K_ITC , CPU_DB_K_ITC + CPU_DB_L_ITC }, { CPU_DB_K_EBM , CPU_DB_K_EBM + CPU_DB_L_EBM }, { CPU_DB_K_INSTRUMENT, CPU_DB_K_INSTRUMENT + CPU_DB_L_INSTRUMENT } }
Referenced by CPU_DB_initialize().