GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-2 > ebf_unpacktest / linux-gcc
#include "EDS/EDSD_unpack.h"
#include "EDS/TMR.h"
#include "EDS/LCBV.h"
#include "EDS/io/EBF_evts.h"
#include "EDS/io/EBF_stream.h"
#include "EDS/io/LCBP.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
Classes | |
struct | _Ctl |
Collections all the control parameters together. These are essentially the interpretted command line options. More... | |
Typedefs | |
typedef struct _Ctl | Ctl |
Typedef for struct _Ctl. | |
Functions | |
static unsigned int | unpacktime (Ctl *ctl) |
Finishes the platform common setup and initalization, starts the packet flow. | |
static void | reportUsage (void) |
Brief explanation on readtest usage. | |
static int | fillCtl (Ctl *ctl, int argc, char *const argv[]) |
Examines the command line parameters and fills the print control structure. | |
static unsigned int | get_report_opts (const char *optarg) |
Returns a bit mask of the reporting options. | |
int | main (int argc, char *const argv[]) |
Usual entry point for the readtest. |
$ ebfunpacktest -ATCD <file.ebf> where A: Unpack ACD C: Unpack CAL T: Unpack TKR D: Directory
CVS $Id: ebf_unpacktest.c,v 1.6 2006/02/21 21:54:58 russell Exp $
static int fillCtl | ( | Ctl * | ctl, | |
int | argc, | |||
char *const | argv[] | |||
) | [static] |
Examines the command line parameters and fills the print control structure.
ctl | The parameter control block. | |
argc | The number of command line parameters. | |
argv | The array of pointers to the command line parameters. |
0,Everything | is okay. | |
-1,Incorrect | command usage. Usually this means that the input file name was absent. |
static unsigned int get_report_opts | ( | const char * | optarg | ) | [static] |
Returns a bit mask of the reporting options.
optarg | Character string of the options |
int main | ( | int | argc, | |
char *const | argv[] | |||
) |
Usual entry point for the readtest.
argc | The number of arguments | |
argv | The vector of arguments. |
$ ebf_unpacktest -s<nskip> -n<nevts> -ACT <file.ebf> where: -s: Indicates the number of events to skip before processing begins -n: Indicates the number of events to process -A: Time the ACD unpacking -C: Time the CAL unpacking -D: Time the DIR composition -T: Time the TKR unpacking
static unsigned int unpacktime | ( | Ctl * | ctl | ) | [static] |
Finishes the platform common setup and initalization, starts the packet flow.
ctl | The control structure |