GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-12-1 > edsprint / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

EDR_acdPrint.c File Reference

Provides an ASCII print out of the unpacked ACD data and also its supporting data structures. More...

#include <stdio.h>
#include <EDS/EDR_acdPrint.h>
#include <EDS/EDA_acd.h>
#include <EDS/EDR_acd.h>
#include <EDR_acdRemap.h>
#include <EDS/ACD_names.h>
#include <PBI/FFS.ih>

Classes

struct  AcdLists
 Internal only structure to hold the bit maps of the ACD values. More...

Functions

static unsigned int classify (int *chn, unsigned int *_a0, unsigned int *_a1)
 Classifies the next specified PHA value as being either a member of the A list, the B list or both.
static void printPhas (const unsigned short *phas, const struct AcdLists *accepts)
 Internal routine to display the ACD PHA values.
void EDR_acdPrint (const EDR_acd *acd)
 Prints an ASCII display of the unpacked ACD record.
static void printBarray (const char *title, const unsigned char *barray, int cnt)
 Internal utility to display an array of bytes.
static void printDecode (const unsigned char *pha, int cnt)
 Internal utility to display an PHA decode array.
void EDR_acdRemapPrint (const EDR_acdRemap *remap)
 Prints a display of the ACD remapping structure.


Detailed Description

Provides an ASCII print out of the unpacked ACD data and also its supporting data structures.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: EDR_acdPrint.c,v 1.8 2011/03/25 22:16:56 russell Exp $

Function Documentation

static unsigned int classify ( int *  chn,
unsigned int *  _a0,
unsigned int *  _a1 
) [static]

Classifies the next specified PHA value as being either a member of the A list, the B list or both.

Parameters:
chn Returned as the channel number of the next PHA value
_a0 Pointer to the current list of "A" accepts
_a1 Pointer to the current list of "B" accepts
Returns:
A mask indicating whether the next active PHA value is a member of only the "A" list (1), only the "B" list (2) or both (3)

References AcdLists::m.

Referenced by printPhas().

void EDR_acdPrint ( const EDR_acd *  acd  ) 

Prints an ASCII display of the unpacked ACD record.

Parameters:
acd Pointer to the unpacked ACD data to display

References printPhas().

void EDR_acdRemapPrint ( const EDR_acdRemap *  remap  ) 

Prints a display of the ACD remapping structure.

Parameters:
remap Pointer to the ACD remapping structure

References printBarray(), and printDecode().

static void printBarray ( const char *  title,
const unsigned char *  barray,
int  cnt 
) [static]

Internal utility to display an array of bytes.

Parameters:
title The title of the array of bytes
barray The array of bytes to display
cnt The number of elements in barray

Referenced by EDR_acdRemapPrint().

static void printDecode ( const unsigned char *  pha,
int  cnt 
) [static]

Internal utility to display an PHA decode array.

Parameters:
pha The PHA decode array
cnt Number of elements in the pha decode array

Referenced by EDR_acdRemapPrint().

static void printPhas ( const unsigned short *  phas,
const struct AcdLists accepts 
) [static]

Internal routine to display the ACD PHA values.

Parameters:
phas The list of PHA values
accepts The lists of PHA accept channels

References ACD_tileNameG(), classify(), and AcdLists::m.

Referenced by EDR_acdPrint().


Generated on Wed Nov 21 18:40:25 2012 by  doxygen 1.5.8