GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSEC / V3-1-0
Constituent: qsec_extract     Tag: linux-gcc
#include "QSEC/QSEC.h"
#include "QSD/CCSDS_istream.h"
#include "QSD/CCSDS_apidDsc.h"
#include "QSD/CCSDS_telemetry.h"
#include "QSE/QSE_update.h"
#include "QSE/QSE_ctx.h"
#include "QSE/QSE_ebf.h"
#include "LSE/LSE_ids.h"
#include "LSF/LSF_scan.h"
#include "LSF/LSF.h"
#include "EDS/EBF_edw.h"
#include "EDS/EBF_ebw.h"
#include "EDS/EBF_pkt.h"
#include "EDS/io/EBF_stream.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for qsec_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 qsec_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 *hdr) |
Given a CCSDS header containing the APID, the function resolves the Apid stream. | |
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. | |
int | qsec_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. |
> qsec_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.
|
|
Process a file of calibration events datagrams.
|
|
Given a CCSDS header containing the APID, the function resolves the Apid stream.
|