GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-1 > ebf_unpacktest / rad750


Interface   Data Structures   File List   Data Fields   Globals  

ebf_unpacktest.c File Reference

Crude program to test and time the unpacking routines. More...

#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.


Detailed Description

Crude program to test and time the unpacking routines.

    $ 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 $
   
Author:
JJRussell - russell@slac.stanford.edu

Function Documentation

static int fillCtl ( Ctl ctl,
int  argc,
char *const   argv[] 
) [static]

Examines the command line parameters and fills the print control structure.

Parameters:
ctl The parameter control block.
argc The number of command line parameters.
argv The array of pointers to the command line parameters.
Return values:
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.

Returns:
A bit mask of the reporting options
Parameters:
optarg Character string of the options

int main ( int  argc,
char *const   argv[] 
)

Usual entry point for the readtest.

Parameters:
argc The number of arguments
argv The vector of arguments.
ebf_unpacktest events to read and print. Example
    $ 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.

Parameters:
ctl The control structure


Generated on Fri Feb 26 09:37:38 2010 by  doxygen 1.5.3