GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / dev > ebf_sivtest / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

ebf_sivtest.c File Reference

Crude program to the Packet Reassembly Code. More...

#include <EDS/EDS_fw.h>
#include <EDS/EDSD_siv.h>
#include <EDS/LCBV.h>
#include <EDS/io/LCBP.h>
#include <EDS/io/EBF_stream.h>
#include <stdlib.h>
#include <stdio.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 sivtest (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

Crude program to the Packet Reassembly Code.

Author:
JJRussell - russell@slac.stanford.edu
    $ ebf_sivtest -n<# of events> -s<# to skip> <file.ebf>
   
    CVS $Id: ebf_sivtest.c,v 1.8 2011/03/25 22:16:55 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.

References _Ctl::name, reportUsage(), _Ctl::to_process, _Ctl::to_skip, and _Ctl::type.

Referenced by main().

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

Usual entry point for the readtest.

Parameters:
argc The number of arguments
argv The vector of arguments.
For usage type ebf_sivtest with no arguments

References fillCtl(), and sivtest().

static unsigned int sivtest ( Ctl ctl  )  [static]

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

Parameters:
ctl The control structure

References _Ctl::name, _Ctl::to_process, _Ctl::to_skip, and _Ctl::type.

Referenced by main().


Generated on Fri Nov 30 09:23:04 2012 by  doxygen 1.5.8