9 #include "OtherMonitorHk.h" 10 #include "AnitaPacketUtil.h" 37 memcpy(
dirFiles,otherPtr->dirFiles,
sizeof(UShort_t)*3);
38 memcpy(
dirLinks,otherPtr->dirLinks,
sizeof(UShort_t)*3);
47 const char *dirNames[3]={
"acqd",
"eventd",
"prioritizerd"};
48 if(dirInd<0 || dirInd>2)
50 return dirNames[dirInd];
57 const char *procName[16]=
58 {
"Acqd",
"Archived",
"Calibd",
"Cmdd",
"Eventd",
"GPSd",
"Hkd",
"LOSd",
59 "Prioritizerd",
"SIPd",
"Monitord",
"Playbackd",
"Logwatchd",
"Neobrickd",
61 if(procInd<0 || procInd>15)
63 return procName[procInd];
69 if(procInd<0 || procInd>15)
UShort_t processBitMask
A bit mask of the flight software processes currently running.
UInt_t runStartEventNumber
Start eventNumber of the current run.
OtherMonitorHk()
Default constructor.
const char * getDirName(int dirInd)
Returns dir name.
int isInProcessMask(int procInd)
Returns 1 or 0 if process is in mask.
UShort_t reserved
Reserved.
UInt_t runStartTime
Start time of the current run.
const char * getProcName(int procInd)
Returns process name (using 0 as the index of the first bit).
OtherMonitorStruct_t – Yes.
UInt_t ramDiskInodes
Inodes remaining on ramdisk.
UInt_t runNumber
Current run number.
Int_t run
Run number, assigned offline.
UShort_t dirFiles[3]
Number of files in /tmp/anita/acqd /tmp/anita/eventd /tmp/anita/prioritizerd.
UInt_t payloadTime
Time in unixTime.
UInt_t realTime
Time in unixTime.
int simplePacketCheck(GenericHeader_t *gHdr, PacketCode_t code)
simplePacketCheck – utility function
~OtherMonitorHk()
Destructor.
OtherMonitorHk – The other CPU Monitor data.