GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-2 > ebf_tkrtest / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

ebf_tkrtest.c File Reference

Program to test the utility functions in EBF_tkr. More...

#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include "EDS/EDS_fw.h"
#include "EDS/TMR.h"
#include "EDS/EDSD_tkr.h"
#include "EDS/LCBV.h"
#include "EDS/io/LCBP.h"
#include "EDS/io/EBF_stream.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 tkrtest (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.
int main (int argc, char *const argv[])
 Usual entry point for the readtest.


Detailed Description

Program to test the utility functions in EBF_tkr.

Author:
JJRussell - russell@slac.stanford.edu
The following command will skip the first 10 events and test the next 4 events in the file events.ebf.

    $ ebf_tkrtest -s10 -s4 events.ebf
   

    CVS $Id: ebf_tkrtest.c,v 1.7 2007/10/10 18:10:00 russell Exp $

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.

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

Usual entry point for the readtest.

Parameters:
argc The number of arguments
argv The vector of arguments.
An example of how to run this program is
    $ ebftkrtest -s2 -n4  event.ebf
   

Skips the first 2 events, and tests the next 4 events (assuming the file has 4 more events.
Executing the program with no arguments prints a usage guide.

static unsigned int tkrtest ( Ctl ctl  )  [static]

Finishes the platform common setup and initalization, starts the packet flow.

Parameters:
ctl The control structure


Generated on Thu Sep 2 12:24:40 2010 by  doxygen 1.5.3