GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDST / V1-2-1 > ebf_fes / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

ebf_fes.c File Reference

Program for developing fast compare code to run on Rad750 with data from FES. More...

#include <EDS/EDS_fw.h>
#include <EDS/EBF_evt.h>
#include <EDS/EBF_gem.h>
#include <EDS/LCBV.h>
#include <EDS/io/EBF_stream.h>
#include <EDS/io/LCBP.h>
#include <LCBD/LCBD.h>
#include <PBS/BSWP.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <EDST/EDST_compareList.h>

Functions

static __inline void * MBA_alloc (int size)
static __inline void MBA_free (void *p)
static __inline void MON_set_watchdog (void)
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 for developing fast compare code to run on Rad750 with data from FES.

Author:
Ed Bacho - ebacho@slac.stanford.edu

JJRussell - russell@slac.stanford.edu

Example:

    $ ebf_fes <inFileLoadedInFes.ebf> <fileFromLat.ebf>
   

For a complete explanation type ebf_fes with no arguments.
This file contains the code for a "fast" compare that will run on the Rad750. The steps are: 1) load EBF file into FES, set FES to insert fileSeqNum into GEM 2) setup LAT to collect data 3) use ebf_fes to setup this code, it will

Note:
The host executable is for debugging this code. The 2nd file specified must be one from the FES/LAT with the fileSeqNUm embedded in the GEM header. The host prog, ebf_fes, has no use beyond this debugging.
Use ebf_diff prog should be used for comparing EBF files.
ebf_diff can also be used to analyze the "bad" file produced with program against the original EBF file.
    CVS $Id: ebf_fes.c,v 1.9 2011/03/30 20:58:23 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.

Return values:
0,Everything is okay.
-1,Incorrect command usage. Usually this means that the input file name was absent.
Parameters:
ctl The parameter control block.
argc The number of command line parameters.
argv The array of pointers to the command line parameters.
Host argument parsing routine

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.
Host main routine

References EDST_compareInit(), and FillCtl().


Generated on Fri Sep 30 19:24:08 2011 by  doxygen 1.5.8