GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> XFC / V0-3-2 > hfcprint / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

HFC_cfgPrint.c File Reference

Prints the contents of the user parameter and/or sampling configuration blocks. record. More...

#include <XFC/HFC_cfg.h>
#include <HFC_def.h>
#include <EFC/EFC_samplerPrint.h>
#include <XFC/HFC_cfgPrint.h>
#include <EDS/ECR_cal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Functions

static void printHdr (const char *title)
 Prints a header.
static void printCfg (const HfcCfgPrms *cfg)
 Prints the contents of a configuration.
unsigned int HFC_cfgPrint (void *ctx, const HFC_cfg *cfg, const EFC_sampler *sampler, unsigned int list)
 Callback routine to print the parameters.


Detailed Description

Prints the contents of the user parameter and/or sampling configuration blocks. record.

Author:
JJRussell - russell@slac.stanford.edu

    CVS $Id

Function Documentation

unsigned int HFC_cfgPrint ( void *  ctx,
const HFC_cfg cfg,
const EFC_sampler *  sampler,
unsigned int  list 
)

Callback routine to print the parameters.

Returns:
The modified list
Parameters:
ctx User context parameter (ignored in this routine)
cfg The configuration block to print
sampler The sampler block
list The list of blocks left to print, by implication, done when this is 0.

References printCfg(), printHdr(), and _HFC_cfg::prms.

static void printCfg ( const HfcCfgPrms cfg  )  [static]

Prints the contents of a configuration.

Return values:
0,Print successfully completed
-1,Unrecognized or unsupported configuration version
Parameters:
cfg The heavy ion configuration to print

References _HfcCfgPrms::cal, _HfcCfgCal::ethreshold, _HfcCfgCal::nmaxlogs, and _HfcCfgCal::tolerance.

Referenced by HFC_cfgPrint().

static void printHdr ( const char *  title  )  [static]

Prints a header.

Parameters:
title A string giving a description of what is to follow

Referenced by HFC_cfgPrint().


Generated on Fri Nov 30 11:19:28 2012 by  doxygen 1.5.8