GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSEC / V3-0-1
Constituent: qsec_print     Tag: sun-gcc
#include "QSEC/QSEC.h"
#include "QSE/CCSDS_istream.h"
#include "QSE/CCSDS_apidDsc.h"
#include "QSE/QSE_printDvr.h"
#include "QSE/QSE_update.h"
#include "QSE/QSE_ctx.h"
#include "QSE/QSE_ctxPrint.h"
#include "QSE/QSE_dirPrint.h"
#include "QSE/QSE_aem.h"
#include "QSE/QSE_aemPrint.h"
#include "QSE/QSE_aemUnpack.h"
#include "QSE/QSE_acd.h"
#include "QSE/QSE_acdPrint.h"
#include "QSE/QSE_acdUnpack.h"
#include "QSE/QSE_tkr.h"
#include "QSE/QSE_tkrPrint.h"
#include "QSE/QSE_tkrUnpack.h"
#include "QSE/QSE_cal.h"
#include "QSE/QSE_calPrint.h"
#include "QSE/QSE_calUnpack.h"
#include "QSE/QSE_gemPrint.h"
#include "LSE/LSE_ids.h"
#include "LSF/LSF.h"
#include "LSF/LSF_print.h"
#include "EDS/EBF_cid.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_match.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
Include dependency graph for qsec_print.c:
Data Structures | |
struct | _Ctl |
Run time print options/parameters. More... | |
struct | _ApidStream |
The 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 _ApidStream | ApidStream |
Typedef for struct _ApidStream. | |
Enumerations | |
enum | _PRT_M { PRT_M_ACD = 0x1, PRT_M_AEM = 0x2, PRT_M_TKR = 0x4, PRT_M_CAL = 0x8, PRT_M_GEM = 0x10, PRT_M_RAW = 0x20, PRT_M_CMP = 0x40, PRT_M_DIR = 0x80, PRT_M_ECTRS = 0x100 } |
What to print. More... | |
Functions | |
static void | report_usage (void) |
Brief explanation on qsec_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 | 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 | construct (QSE_printDvr *printDvr, unsigned int resource_level, void *printDvrPrm, ApidStream *astream) |
Constructs/initializes the print driver handle used in formatting the events. | |
static __inline ApidStream * | resolve (ApidStream *astreams, int astream_cnt, const CCSDS_istreamHdr *hdr) |
Given a CCSDS header containing the APID, the function resolves the Apid stream. | |
LSF_scanContributionHandler | screen_dgm (QSE_printDvr *dvr, const LSF_datagram *dgm) |
Screens out any datagrams that are not LSEP event datagrams. | |
static unsigned int | print_dgm (ApidStream *astream, const LSF_datagram *dgm, QSEC *qsec) |
Prints the event context information. | |
static unsigned int | print_ctb (ApidStream *astream, const LSF_contribution *ctb, QSEC *qsec) |
Prints the event context information. | |
static unsigned int | print_rec (ApidStream *astream, const LSF_record *rec, QSEC *qsec) |
Expands and prints the contents of the event. | |
static LSF_scanContributionHandler | dgm_count (int *count, const LSF_datagram *dgm, QSEC *qsec) |
Counts the number of events in this contribution. | |
static LSF_scanRecordHandler | ctb_count (int *count, const LSF_contribution *ctb, QSEC *qsec) |
Counts the number of events in this contribution. | |
static void | printEvt (const QSE_ebfEvt *evt, int nbytes) |
Prints a very crude hex dump of the EBF event record to stdout. | |
static void | printRec (const LSF_record *rec) |
Prints a very crude hex dump of the event record to stdout. | |
static void | printDmp (const unsigned int *dat, int cnt) |
Prints a formatted hex dump of the specified block of integers. | |
static void | new_line (void) |
Prints a new line. | |
int | QSEC_print (int argc, char *const argv[]) |
Process a file of calibration events datagrams. | |
int | main (int argc, char *const argv[]) |
Process a file of calibration events datagrams. |
> qsec_print -d -n:<# of events> -s<# to skip> <file_name>
|
Round _x up to the nearest boundary of _r.
|
|
|
Constructs/initializes the print driver handle used in formatting the events.
|
|
Constructs the individual APID streams.
|
|
Counts the number of events in this contribution.
|
|
Counts the number of events in this contribution.
|
|
Examines the command line parameters and fills the print run time options control structure.
|
|
Process a file of calibration events datagrams.
|
|
Prints the event context information.
|
|
Prints the event context information.
|
|
Expands and prints the contents of the event.
|
|
Prints a formatted hex dump of the specified block of integers.
|
|
Prints a very crude hex dump of the EBF event record to stdout.
|
|
Prints a very crude hex dump of the event record to stdout.
|
|
Process a file of calibration events 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.
|