GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QPD / V1-0-0

Constituent: qpd     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QPD_disp.c File Reference

Routines for displaying miscellaneous diagnostic data. More...

#include "QPD/QPD.h"
#include "QPD/QPD_msgs.h"
#include "PBS/WCT.h"
#include "LIM/LIM_pubdefs.h"
#include <stdio.h>
#include <time.h>

Include dependency graph for QPD_disp.c:


Data Structures

struct  lookup_t

Defines

#define NELEM(x)   (sizeof x / sizeof x[0])

Functions

static int secsToStr (int secs, char *cTime)
 Convert spacecraft time to a string.
void QPD_dispHeader (int flags, CCSDS_telemetry *pkt)
 Display a line of packet header data.
void QPD_dispCmndConf (unsigned flags, unsigned secs, ITC_CmdConfirm_Tlm *pkt)
 Display a line of command confirmation data.
void QPD_dispModData (unsigned flags, unsigned secs, LCM_LLCMMODLIST_Tlm *pkt)
 Display a line of LCM module data.
void QPD_dispTaskData (unsigned flags, unsigned secs, LCM_LLCMTASKLIST_Tlm *pkt)
 Display a line of LCM task data.
void QPD_dispLimData (unsigned flags, unsigned secs, LIM_State_Tlm *pkt)
 Display a line of LIM state data.

Variables

static char * uName []
static char * nName []
static char * tName []
static lookup_t actions []
static lookup_t modes []

Detailed Description

Routines for displaying miscellaneous diagnostic data.

Author:
Owen H Saxton
Id
QPD_disp.c,v 1.1.1.1 2008/04/04 19:24:22 saxton Exp

Function Documentation

void QPD_dispCmndConf unsigned  flags,
unsigned  secs,
ITC_CmdConfirm_Tlm *  pkt
 

Display a line of command confirmation data.

This routine produces a formatted line from the contents of a command confirmation packet.

Parameters:
flags The packet flags.
secs The time the confirmation was generated, in spacecraft units.
pkt The command confirmation packet to be displayed.

void QPD_dispHeader int  flags,
CCSDS_telemetry *  pkt
 

Display a line of packet header data.

This routine produces a formatted line from the contents of a packet header.

Parameters:
flags The packet flags.
pkt The packet header to be displayed.

void QPD_dispLimData unsigned  flags,
unsigned  secs,
LIM_State_Tlm *  pkt
 

Display a line of LIM state data.

This routine produces a formatted line from the contents of a packet of LIM state data.

Parameters:
flags The packet flags.
secs The time the task data was obtained, in spacecraft units.
pkt The packet of state data to be displayed.

void QPD_dispModData unsigned  flags,
unsigned  secs,
LCM_LLCMMODLIST_Tlm *  pkt
 

Display a line of LCM module data.

This routine produces a formatted line from the contents of a packet of module data.

Parameters:
flags The packet flags.
secs The time the module data was obtained, in spacecraft units.
pkt The packet of module data to be displayed.

void QPD_dispTaskData unsigned  flags,
unsigned  secs,
LCM_LLCMTASKLIST_Tlm *  pkt
 

Display a line of LCM task data.

This routine produces a formatted line from the contents of a packet of task data.

Parameters:
flags The packet flags.
secs The time the task data was obtained, in spacecraft units.
pkt The packet of task data to be displayed.

int secsToStr int  secs,
char *  cTime
[static]
 

Convert spacecraft time to a string.

This routine converts a spacecraft time, in seconds, to a string with the format YYYY-MM-DD HH:MM:SS.

Parameters:
secs The time to be converted.
cTime The address of an area to hold the converted time. It must be at least 20 bytes long (including the terminating null byte).
Returns:
The length of the converted time string.


Variable Documentation

lookup_t modes[] [static]
 

Initial value:

 {{LIM_OP_MODE_TERMINAL,    "TERMINAL"},
                           {LIM_OP_MODE_QUIESCENT,   "QUIESCENT"},
                           {LIM_OP_MODE_CALIBRATION, "CALIBRATION"},
                           {LIM_OP_MODE_PHYSICS,     "PHYSICS"},
                           {LIM_OP_MODE_TOO,         "TOO"},
                           {LIM_OP_MODE_ARR,         "ARR"},
                           {LIM_OP_MODE_HOLD,        "HOLD"},
                           {0,                       "UNKNOWN"}}

char* nName[] [static]
 

Initial value:

 {"SIU", "EPU0", "EPU1", "EPU2", "EPU3", "SC", "SDI",
                        "BCST"}

char* tName[] [static]
 

Initial value:

 {"ANON", "LCM",  "mLFS", "sLFS", "mLHK", "sLHK",
                        "mLIM", "sLIM", "mLSM", "sLSM", "mLSW", "",
                        "mLCI", "sLCI", "LMC",  "mLPA", "sLPA", "LRA",
                        "LTC",  "GRB",  "ICT",  "",     "CRXC", "CRXT",
                        "LTX1", "LTX0", "LRXR", "LRXE", "LRXN", "CTX",
                        "STX",  "BCST"}

char* uName[] [static]
 

Initial value:

 {"SIU", "EPU0", "EPU1", "EPU2", "?", "?", "?", "?",
                        "?", "?", "?", "?", "?", "?", "?", "?"}


Generated on Tue Apr 15 01:16:15 2008 by  doxygen 1.4.4