GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / V4-5-0 > efcprint / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

EFC_samplerPrint.c File Reference

Implementation of the EFC sampler print routines. More...

#include <EFC/EFC_samplerPrint.h>
#include <EFC/EFC_samplerDef.h>
#include <stdio.h>

Functions

static void printHeader (const char *title)
 Prints the format and instance versioning information.
static void printClasses (const EFC_samplerClasses *classes)
 Prints the static information.
static int printPrescales (const EFC_samplerPrescaleCtx *prescaler)
 Prints the contents of a sampler configuration record.
int EFC_samplerPrint (const EFC_sampler *sampler, const char *title)
 Prints the contents of the parameter configuration record.
static void printSeparator (void)
 Prints a separating line.


Detailed Description

Implementation of the EFC sampler print routines.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: EFC_samplerPrint.c,v 1.5 2011/11/14 17:56:37 russell Exp $

Function Documentation

EFC_samplerPrint ( const EFC_sampler sampler,
const char *  title 
)

Prints the contents of the parameter configuration record.

Return values:
0,Print successfully completed
-1,Unrecognized or unsupported configuration version
Parameters:
sampler The sampler record to print
title Optional identifing title

References _EFC_sampler::classes, _EFC_sampler::prescale, printClasses(), printHeader(), and printPrescales().

static void printClasses ( const EFC_samplerClasses classes  )  [static]

Prints the static information.

Parameters:
classes The sampler classes structure to print

References _EFC_classes::all, _EFC_samplerClasses::defined, _EFC_samplerClasses::enabled, _EFC_classes::info, _EFC_classes::passes, printSeparator(), and _EFC_classes::vetoes.

Referenced by EFC_samplerPrint().

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

Prints the format and instance versioning information.

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

References printSeparator().

Referenced by EFC_samplerPrint().

static int printPrescales ( const EFC_samplerPrescaleCtx prescale  )  [static]

Prints the contents of a sampler configuration record.

Return values:
0,Print successfully completed
-1,Unrecognized or unsupported configuration version
Parameters:
prescale The prescale context to print

References _EFC_classes::all, _EFC_samplerPrescaleCtx::enabled, _EFC_samplerPrescaleCtx::in, _EFC_samplerPrescaleCtx::out, _EFC_samplerPrescaleCtx::prescalers, printSeparator(), and _EFC_samplerPrescaleCounter::refresh.

Referenced by EFC_samplerPrint().


Generated on Wed Jan 4 14:13:45 2012 by  doxygen 1.5.8