GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSEC / V3-1-0
Constituent: qsec_print     Tag: sun-gcc
#include "QSEC/QSEC.h"
#include "QSD/CCSDS_istream.h"
#include "QSD/CCSDS_apidDsc.h"
#include "QSD/CCSDS_telemetry.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 "EDS/EBF_gem.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
Include dependency graph for qsec_print.c:
Data Structures | |
struct | _Ctl |
struct | _ApidStream |
Defines | |
#define | RND_TO(_x, _r) (((_x) + (_r) - 1) / (_r)) * (_r) |
#define | CLK_FREQ 20000000 |
#define | CLK_BITS 25 |
#define | CLK_MASK ((1 << CLK_BITS) - 1) |
#define | SECS_MASK ((1 << (32 - CLK_BITS)) - 1) |
Typedefs | |
typedef enum _PRT_M | PRT_M |
typedef _Ctl | Ctl |
typedef _ApidStream | 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, PRT_M_ETIME = 0x200 } |
Functions | |
static void | report_usage (void) |
static int | get_ctl (Ctl *ctl, int argc, char *const argv[]) |
static int | size (const Ctl *ctl) |
static void | construct_astreams (ApidStream *astreams, int astream_cnt, unsigned int which, Ctl *ctl) |
static void | construct (QSE_printDvr *printDvr, unsigned int resource_level, void *printDvrPrm, ApidStream *astream) |
static __inline ApidStream * | resolve (ApidStream *astreams, int astream_cnt, const CCSDS_telemetry *hdr) |
LSF_scanContributionHandler | screen_dgm (void *dvr, const LSF_datagram *dgm) |
static unsigned int | print_dgm (void *astream, const LSF_datagram *dgm, void *qsec) |
static unsigned int | print_ctb (void *astream, const LSF_contribution *ctb, void *qsec) |
static unsigned int | print_rec (void *astream, const LSF_record *rec, void *qsec) |
static LSF_scanContributionHandler | dgm_count (void *count, const LSF_datagram *dgm) |
static LSF_scanRecordHandler | ctb_count (void *count, const LSF_contribution *ctb) |
static void | updateEtime (const EBF_gem *gem, Ctl *ctl) |
static void | printEtime (const Ctl *ctl) |
static void | printEvt (const QSE_ebfEvt *evt, int nbytes) |
static void | printRec (const LSF_record *rec) |
static void | printDmp (const unsigned int *dat, int cnt) |
static void | new_line (void) |
int | QSEC_print (int argc, char *const argv[]) |
int | main (int argc, char *const argv[]) |
> qsec_print -d -n:<# of events> -s<# to skip> <file_name>
|
Round _x up to the nearest boundary of _r
|
|
APID stream structure |
|
Run time print options/parameters |
|
What to print |
|
|
Construct/initialize the print driver handle used in formatting the events
|
|
Construct the individual APID streams
|
|
Count the number of events in this contribution
|
|
Count the number of events in this datagram
|
|
Examine the command line parameters and fill the print run time options control structure
|
|
Main program to process a file of calibration event datagrams
|
|
Print a new line |
|
Print the event context information
|
|
Print the event context information
|
|
Expand and print the contents of the event
|
|
Print a formatted hex dump of the specified block of integers
|
|
Print the time of the event.
|
|
Print a very crude hex dump of the EBF event record to stdout.
|
|
Print a very crude hex dump of the event record to stdout.
|
|
Process a file of calibration event datagrams
|
|
Brief explanation on qsec_print usage |
|
Given a CCSDS header containing the APID, the function resolves the Apid stream.
|
|
Screen out any datagrams that are not LSEC event datagrams
|
|
Return the size, in bytes, of the control handle. The amount of memory returned by this routien should be allocated by caller and passed, along with prm, to construction routine
|
|
Update the time of the event.
|