GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QLRA / V0-1-2

Constituent: qlra     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QLRA_disp.c File Reference

Routines for displaying LRA data. More...

#include "QLRA/QLRA.h"
#include "QLRA/QLRA_msgs.h"
#include "LRA/LRA_cli.h"
#include "PBI/Endianness.h"
#include "stdio.h"
#include "string.h"
#include "time.h"

Include dependency graph for QLRA_disp.c:


Defines

#define DOPT_NOT_FIRST   0x10000

Functions

static int secsToStr (int secs, char *cTime)
 Convert spacecraft time to a string.
static int wctToStr (WCT_time wct, char *cTime)
 Convert wall clock time to a string.
static void dispHeader (char *text, int leng)
 Display header line.
static void dispCmdStats (char *desc, LRA_cmdStats *data)
 Display line of command statistics.
static void dispRspStats (char *desc, LRA_xmtStats *data)
 Display line of response statistics.
static void dispEvtsStats (char *desc, LRA_xmtStats *data)
 Display line of sent event statistics.
static void dispEvtrStats (char *desc, LRA_rcvStats *data)
 Display line of received event statistics.
static void dispAemStats (LRA_aemStats *data)
 Display AEM error statistics.
static void dispTemStats (int tem, LRA_temStats *data)
 Display TEM error statistics.
static void dispTicStats (int tem, LRA_ticStats *data)
 Display TIC error statistics.
static void dispCccFifo (int tem, int cc, LRA_cccStats *data)
 Display CCC FIFO error statistics.
static void dispCccStats (int tem, int cc, LRA_cccStats *data)
 Display CCC error statistics.
static void dispTccFifo (int tem, int cc, LRA_tccStats *data)
 Display TCC FIFO error statistics.
static void dispTccStats (int tem, int cc, LRA_tccStats *data)
 Display TCC error statistics.
static void shortSwap (unsigned short *data, int count)
 Swap 16-bit words in an array.
static void intSwap (unsigned int *data, int count)
 Swap 32-bit words in an array.
void QLRA_dispRegData (unsigned int secs, LRA_regData *rData, void *parm)
 Display register data.
void QLRA_dispEsrData (unsigned int secs, LRA_esrData *rData, void *parm)
 Display error and status register data.
void QLRA_dispStats (unsigned int secs, LRA_stats *sData, void *parm)
 Display statistics data.

Detailed Description

Routines for displaying LRA data.

Author:
Owen H Saxton
Id
QLRA_disp.c,v 1.4 2007/04/20 00:11:40 saxton Exp

Function Documentation

void dispAemStats LRA_aemStats *  data  )  [static]
 

Display AEM error statistics.

This routine generates several lines of AEM error statistics from the supplied data.

Parameters:
data Address of the statistics data to be formatted.

void dispCccFifo int  tem,
int  cc,
LRA_cccStats *  data
[static]
 

Display CCC FIFO error statistics.

This routine generates 3 lines of CCC FIFO error statistics from the supplied data.

Parameters:
tem The TEM number
cc The CCC number
data Address of the statistics data to be formatted.

void dispCccStats int  tem,
int  cc,
LRA_cccStats *  data
[static]
 

Display CCC error statistics.

This routine generates a line of CCC error statistics from the supplied data.

Parameters:
tem The TEM number
cc The CCC number
data Address of the statistics data to be formatted.

void dispCmdStats char *  desc,
LRA_cmdStats *  data
[static]
 

Display line of command statistics.

This routine generates a line of command statistics from the supplied data.

Parameters:
desc Description for the line
data Address of the statistics data to be formatted.

void dispEvtrStats char *  desc,
LRA_rcvStats *  data
[static]
 

Display line of received event statistics.

This routine generates a line of received event statistics from the supplied data.

Parameters:
desc Description for the line
data Address of the statistics data to be formatted.

void dispEvtsStats char *  desc,
LRA_xmtStats *  data
[static]
 

Display line of sent event statistics.

This routine generates a line of sent event statistics from the supplied data.

Parameters:
desc Description for the line
data Address of the statistics data to be formatted.

void dispHeader char *  text,
int  leng
[static]
 

Display header line.

This routine generates a header line of the requested length with the supplied text centered and filled with minuses.

Parameters:
text Text for the header line
leng Length of the line

void dispRspStats char *  desc,
LRA_xmtStats *  data
[static]
 

Display line of response statistics.

This routine generates a line of response statistics from the supplied data.

Parameters:
desc Description for the line
data Address of the statistics data to be formatted.

void dispTccFifo int  tem,
int  cc,
LRA_tccStats *  data
[static]
 

Display TCC FIFO error statistics.

This routine generates 3 lines of TCC FIFO error statistics from the supplied data.

Parameters:
tem The TEM number
cc The TCC number
data Address of the statistics data to be formatted.

void dispTccStats int  tem,
int  cc,
LRA_tccStats *  data
[static]
 

Display TCC error statistics.

This routine generates a line of TCC error statistics from the supplied data.

Parameters:
tem The TEM number
cc The TCC number
data Address of the statistics data to be formatted.

void dispTemStats int  tem,
LRA_temStats *  data
[static]
 

Display TEM error statistics.

This routine generates a line of TEM error statistics from the supplied data.

Parameters:
tem The TEM number
data Address of the statistics data to be formatted.

void dispTicStats int  tem,
LRA_ticStats *  data
[static]
 

Display TIC error statistics.

This routine generates a line of TIC error statistics from the supplied data.

Parameters:
tem The TEM number
data Address of the statistics data to be formatted.

void intSwap unsigned int *  data,
int  count
[static]
 

Swap 32-bit words in an array.

This routine swaps in place each consecutive pair of 32-bit words in an array between big-endian and machine order.

Parameters:
data The address of the array
count The number of pairs to swap

void QLRA_dispEsrData unsigned int  secs,
LRA_esrData *  rData,
void *  parm
 

Display error and status register data.

This routine produces a formatted display of the contents of a block of error and status register data.

Parameters:
secs The time the register data was obtained, in spacecraft units.
rData The register data to be displayed.
parm Options to modify the display.

void QLRA_dispRegData unsigned int  secs,
LRA_regData *  rData,
void *  parm
 

Display register data.

This routine produces a formatted display of the contents of a block of register data.

Parameters:
secs The time the register data was obtained, in spacecraft units.
rData The register data to be displayed.
parm Options to modify the display.

void QLRA_dispStats unsigned int  secs,
LRA_stats *  sData,
void *  parm
 

Display statistics data.

This routine produces a formatted display of the contents of a block of statistics data.

Parameters:
secs The time the data was sent, in spacecraft units.
sData The statistics data to be displayed.
parm Options to modify the display.

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.

void shortSwap unsigned short *  data,
int  count
[static]
 

Swap 16-bit words in an array.

This routine swaps in place each consecutive pair of 16-bit words in an array between big-endian and machine order.

Parameters:
data The address of the array
count The number of pairs to swap

int wctToStr WCT_time  wct,
char *  cTime
[static]
 

Convert wall clock time to a string.

This routine converts a wall clock time to a string with the format YYYY-MM-DD HH:MM:SS.

Parameters:
wct 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.


Generated on Fri Apr 20 05:32:50 2007 by  doxygen 1.4.4