GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSE / V1-5-2

Constituent: qse     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QSE_calUnpack.c File Reference

Unpacks from EBF format to QSE. More...

#include "QSE/QSE_calUnpack.h"
#include "QSE/QSE_cal.h"
#include "QSE/QSE_map.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_cal.h"
#include "EDS/EBF_cid.h"

Include dependency graph for QSE_calUnpack.c:


Functions

static __inline QSE_calLogunpackTower4 (QSE_calTwr *twr, int num, unsigned char flags, QSE_calLog *dst, const EBF_dirCtbDsc *dsc)
 Unpacks the CAL data from 1 tower into a QSE_calTwr structure. This routine assumes 4 range readout.
static __inline QSE_calLogunpackTower (QSE_calTwr *twr, int num, unsigned char flags, QSE_calLog *dst, const EBF_dirCtbDsc *dsc)
 Unpacks single range readout CAL data specified tower.
int QSE_calUnpack (QSE_cal *cal, const EBF_dir *dir)
 Unpacks the CAL data for the whole LAT.
int QSE_calUnpackSizeof (void)
 Returns the size, in bytes, of a QSE_cal.
int QSE_calUnpackInit (QSE_cal *cal)
 Performs one time initialization of a CAL LAT record.

Detailed Description

Unpacks from EBF format to QSE.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: QSE_calUnpack.c,v 1.4 2006/02/22 01:24:43 russell Exp $

Function Documentation

int QSE_calUnpack QSE_cal cal,
const EBF_dir *  dir
 

Unpacks the CAL data for the whole LAT.

Parameters:
cal The QSE_cal data structure to fill
dir The directory structure for this event; used to locate the CAL data.
The QSE_cal describes an unpacked butnon-calibrated CAL data for the entire LAT.

int QSE_calUnpackInit QSE_cal cal  ) 
 

Performs one time initialization of a CAL LAT record.

Returns:
Status, currently always SUCCESS
Parameters:
cal Pointer to the structure to initialize
This function should be called only once to initialize the record.

int QSE_calUnpackSizeof void   ) 
 

Returns the size, in bytes, of a QSE_cal.

Returns:
The size, in bytes, of a QSE_cal.
This function should be called to determine the size of an QSE_cal structure. This allows the calling program to avoid including the structure definition an QSE_cal.

After allocating an QSE_cal structure, the structure should be initialized using QSE_calUnpackInit().

QSE_calLog * unpackTower QSE_calTwr twr,
int  num,
unsigned char  flags,
QSE_calLog dst,
const EBF_dirCtbDsc *  dsc
[static]
 

Unpacks single range readout CAL data specified tower.

Returns:
The next destination address for the data

The number of logs

Parameters:
twr The CAL tower data structure to fill
num The tower number
flags The readout flags associated with this tower
dst The destination address for the logs in this tower
dsc The CAL contributor descriptor
The QSE Cal Tower Record contains the describes a fully unpacked, but not and calibrated CAL tower.
Warning:
This routine can be called if and only if there are struck logs in this tower and the data is single range readout.

QSE_calLog * unpackTower4 QSE_calTwr twr,
int  num,
unsigned char  flags,
QSE_calLog dst,
const EBF_dirCtbDsc *  dsc
[static]
 

Unpacks the CAL data from 1 tower into a QSE_calTwr structure. This routine assumes 4 range readout.

Returns:
The next destination address for the data
Parameters:
twr The CAL tower data structure to fill
num The tower number
flags The readout flags associated with this tower
dst The destination address for the logs in this tower
dsc The CAL contributor descriptor
Warning:
This routine can be called if and only if there are struck logs in this tower and the data is in 4 range readout mode


Generated on Tue Nov 21 01:31:31 2006 by  doxygen 1.4.4