GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSSP / V0-0-1
Constituent: qssp_print     Tag: sun-gcc
#include "QSSP/QSSP.h"
#include "QSSP/QSSP_ctx.h"
#include "QSSP/QSSP_sample.h"
#include "QSSP/QSSP_samplesPrint.h"
#include "QSSP/QSSP_ctxPrint.h"
#include "QSSP/QSSP_labels.h"
#include "QSD/CCSDS_istream.h"
#include "QSD/CCSDS_apidDsc.h"
#include "QSD/CCSDS_telemetry.h"
#include "dprintf.h"
#include "LSE/LSEW_ctxTim.h"
#include "LSF/LSF.h"
#include "LSF/LSF_ids.h"
#include "LSF/LSF_print.h"
#include "LSF/LSF_reason.h"
#include "EFC/EFS_ids.h"
#include "CDM/CDM_pubdefs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for qssp_print.c:
Data Structures | |
struct | _Ctl |
Run time print options/parameters. More... | |
struct | _ApidStats |
Apid statistics. More... | |
struct | _QsspPrintCtx |
The print context. More... | |
struct | _DgmStream |
The EFS print datagram context for one Datagram Id. More... | |
struct | _ApidStream |
The EFS print context for one APID. More... | |
Defines | |
#define | RND_TO(_x, _r) (((_x) + (_r) - 1) / (_r)) * (_r) |
Round _x up to the nearest boundary of _r. | |
Typedefs | |
typedef enum _PRT_M | PRT_M |
Typedef for enum PRT_M. | |
typedef _Ctl | Ctl |
Typedef for struct _Ctl. | |
typedef _ApidStats | ApidStats |
Typedef for struct _ApidStats. | |
typedef _QsspPrintCtx | QsspPrintCtx |
Typedef for struct _QsspPrintCtx. | |
typedef _ApidStream | ApidStream |
Typedef for struct _ApidStream. | |
typedef _DgmStream | DgmStream |
Typedef for struct _DgmStream. | |
Enumerations | |
enum | _PRT_M { PRT_M_HDR = 0x0001, PRT_M_RAW = 0x0002, PRT_M_STATS = 0x0004 } |
What to print. More... | |
Functions | |
static void | report_usage (void) |
Brief explanation on qsep_print usage. | |
static int | get_ctl (Ctl *ctl, int argc, char *const argv[]) |
Examines the command line parameters and fills the print run time options control structure. | |
static int | loadLib (const char *library_name, int verbose) |
Dynamically loads the specified configuration library. | |
static int | size (const Ctl *ctl) |
Returns the size, in bytes, of the control handle. | |
static void | construct_astreams (ApidStream *astreams, int astream_cnt, unsigned int which, Ctl *ctl) |
Constructs the individual APID streams. | |
static void | destruct_astreams (ApidStream *astreams, int astream_cnt, unsigned int which) |
Constructs the individual APID streams. | |
static void | construct (QsspPrintCtx *ptx, ApidStream *astream) |
Constructs/initializes the context for handling the statistics datagrams. | |
static void | destruct (QsspPrintCtx *ptx) |
Destructor for the context for handling the statistics datagrams. | |
static __inline ApidStream * | resolve (ApidStream *astreams, int astream_cnt, const CCSDS_telemetry *hdr) |
Given a CCSDS header containing the APID, the function resolves the Apid stream. | |
static LSF_scanContributionHandler | screen_dgm (ApidStream *astream, const LSF_datagram *dgm) |
Screens out any datagrams that are not LSEP event datagrams. | |
static LSF_scanRecordHandler | print_ctb (DgmStream *dstream, const LSF_contribution *ctb) |
Prints the contribution context information. | |
static unsigned int | print_rec (DgmStream *dstream, const LSF_record *rec) |
Prints the record information. | |
static unsigned int | print_rec_only (DgmStream *dstream, const LSF_record *rec) |
Prints the record information. | |
static void | printRaw (const unsigned int *pdata, unsigned int cnt) |
Bare bones dump of the specified number of 32-bit words. | |
static void | new_line (void) |
Prints a new line. | |
static int | qssp_print (int argc, char *const argv[]) |
Process a file of science statistics datagrams. | |
int | main (int argc, char *const argv[]) |
Process a file of physics events datagrams. |
Cvs $Id: qssp_print.c,v 1.2 2008/04/04 21:30:04 russell Exp $
> qssp_print -d -n:<# of stats> -s<# to skip> <file_name>
|
Round _x up to the nearest boundary of _r.
|
|
What to print.
|
|
Constructs/initializes the context for handling the statistics datagrams.
|
|
Constructs the individual APID streams.
|
|
Destructor for the context for handling the statistics datagrams.
|
|
Constructs the individual APID streams.
|
|
Examines the command line parameters and fills the print run time options control structure.
|
|
Dynamically loads the specified configuration library.
|
|
Process a file of physics events datagrams.
|
|
Prints the contribution context information.
|
|
Prints the record information.
|
|
Prints the record information.
|
|
Bare bones dump of the specified number of 32-bit words.
|
|
Process a file of science statistics datagrams.
|
|
Given a CCSDS header containing the APID, the function resolves the Apid stream.
|
|
Screens out any datagrams that are not LSEP event datagrams.
|
|
Returns the size, in bytes, of the control handle.
|