GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSEP / V2-0-0
Constituent: qsep_extract     Tag: linux-gcc
#include "QSEP/QSEP.h"
#include "QSEP/QSEP_ctx.h"
#include "QSE/QSE_update.h"
#include "QSE/QSE_ctx.h"
#include "QSE/QSE_ebf.h"
#include "QSE/QSE_aem.h"
#include "QSE/QSE_aemUnpack.h"
#include "QSE/QSE_tkr.h"
#include "QSE/QSE_tkrUnpack.h"
#include "QSE/QSE_cal.h"
#include "QSE/QSE_calUnpack.h"
#include "QSD/CCSDS_istream.h"
#include "QSD/CCSDS_telemetry.h"
#include "QSD/CCSDS_apidDsc.h"
#include "LSEP/LSEP_ids.h"
#include "LSE/LSE_ids.h"
#include "LSF/LSF_scan.h"
#include "LSF/LSF.h"
#include "EDS/ESS.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_cid.h"
#include "EDS/EBF_edw.h"
#include "EDS/EBF_ebw.h"
#include "EDS/EBF_pkt.h"
#include "EDS/EBF_match.h"
#include "EDS/FFS.h"
#include "EDS/io/EBF_stream.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for qsep_extract.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 _Ctl | Ctl |
Typedef for struct _Ctl. | |
typedef _ApidStream | ApidStream |
Typedef for struct _ApidStream. | |
Functions | |
static void | report_usage (void) |
Brief explanation on qsep_extract 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 void | construct_astreams (ApidStream *astreams, int astream_cnt, unsigned int which, Ctl *ctl) |
Constructs the individual APID streams. | |
static __inline ApidStream * | resolve (ApidStream *astreams, int astream_cnt, const CCSDS_telemetry *pkt) |
Given a CCSDS header containing the APID, the function resolves the Apid stream. | |
static LSF_scanContributionHandler | screen_dgm (ApidStream *stream, const LSF_datagram *dgm) |
Screens out any datagrams that are not LSEP event datagrams. | |
static LSF_scanContributionHandler | handle_dgm (ApidStream *astream, const LSF_datagram *dgm) |
handle the datatgram | |
static LSF_scanRecordHandler | handle_ctb (ApidStream *astream, const LSF_contribution *ctb) |
Handles the event context information at contribution time. | |
static unsigned int | handle_rec (ApidStream *astream, const LSF_record *rec) |
Extracts and writes the contents of the event. | |
static LSF_scanContributionHandler | dgm_count (int *count, const LSF_datagram *dgm) |
Counts the number of events in this contribution. | |
static LSF_scanRecordHandler | ctb_count (int *count, const LSF_contribution *ctb) |
Counts the number of events in this contribution. | |
static void | rsd_add (QSE_ebfEvt *evt, const QSEP *qsep, unsigned int rsdmsk) |
Adds as much result summary information as can fit into the 8-word event header. | |
static __inline int | not_dismissable (const EBF_dir *dir, unsigned int status) |
For EBF_dirCompose failures, checks to see if for the purposes of qsep_print, whether the error is dismissaable. | |
int | qsep_extract (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. |
> qsep_extract -n:<# of events> -s<# to skip> -o<file_name> <file_name>
|
Round _x up to the nearest boundary of _r.
|
|
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.
|
|
Handles the event context information at contribution time.
|
|
handle the datatgram
|
|
Extracts and writes the contents of the event.
|
|
Process a file of calibration events datagrams.
|
|
For EBF_dirCompose failures, checks to see if for the purposes of qsep_print, whether the error is dismissaable.
|
|
Process a file of calibration events datagrams.
|
|
Given a CCSDS header containing the APID, the function resolves the Apid stream.
|
|
Adds as much result summary information as can fit into the 8-word event header.
|
|
Screens out any datagrams that are not LSEP event datagrams.
|