GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EMP / V1-3-0

Constituent: ascprint     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

ASC_dgmPrint.c File Reference

Dump routine for the ASC LSF datagram. More...

#include "EMP/ASC_dgmPrint.h"
#include "EMP/ASC.h"
#include "EMP/ASC_ids.h"
#include "EMP/ASC_ascCtb.h"
#include "EMP/ASC_statsdefs.h"
#include "EMP/EMP_hdrdefs.h"
#include "ZLIB/zlib.h"
#include "LSF/LSF.h"
#include "PBS/TMR.h"
#include "PBS/MBA.h"
#include <stdio.h>
#include <string.h>

Include dependency graph for ASC_dgmPrint.c:


Functions

static void printHdr (const EMP_hdr *hdr)
 Prints info in the EMP_hdr.
static void printHdrEvt (const EMP_hdrEvt *evt, const char *which)
 Prints the statistics information for the first or last event in the sample.
static void printStats (const ASC_stats *stats, unsigned int nsampled)
 Prints the accumulation (mainly timing) statistics.
static int DoInflate (void *source, const unsigned long sourceSize, void *dest, const unsigned long destSize)
 Decompress buff.
void ASC_dgmPrint (const LSF_datagram *dgm, unsigned int options)
 Print the LSF datagram containing EMP/ASC data.

Detailed Description

Dump routine for the ASC LSF datagram.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: ASC_dgmPrint.c,v 1.1 2006/03/01 01:44:41 russell Exp $

Function Documentation

void ASC_dgmPrint const LSF_datagram *  dgm,
unsigned int  options
 

Print the LSF datagram containing EMP/ASC data.

Parameters:
dgm Pointer to the LSF datagram
options Bit mask of optoins, see ASC_PRINT_M in ASC_dgmPrint.h Specifying as -1 prints everything

static int DoInflate void *  source,
const unsigned long  sourceSize,
void *  dest,
const unsigned long  destSize
[static]
 

Decompress buff.

Return values:
0,Success 
-1,inflate failure
-2,inflateInit failure
Parameters:
source Buffer of the compressed data
sourceSize Size, in bytes, of the compressed data
dest Buffer for decompressed data
destSize Maximum size, in bytes of dest buffer

static void printHdr const EMP_hdr hdr  )  [static]
 

Prints info in the EMP_hdr.

Parameters:
hdr Pointer to the EMP_hdr

static void printHdrEvt const EMP_hdrEvt evt,
const char *  which
[static]
 

Prints the statistics information for the first or last event in the sample.

Parameters:
evt The statistics information to print
which A character string indicating which statistics (first or last is being printed.

static void printStats const ASC_stats stats,
unsigned int  nsampled
[static]
 

Prints the accumulation (mainly timing) statistics.

Parameters:
stats The statistics information to print
nsampled The number of events sampled in compiling these statistics


Generated on Wed Nov 15 04:52:09 2006 by  doxygen 1.4.4