GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-2 > qse / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

QDF_esbRepack.c File Reference

Generic utilities used in repacking/reformating events to EBF format. More...

#include <QSE/QDF_esbRepack.h>
#include <QSE/QDF_esb.h>
#include <EDS/EBF_ctb.h>
#include <PBI/PTR.h>
#include <PBI/Endianness.h>
#include <string.h>

Functions

static __inline unsigned int * zero_pad_bytes (unsigned int *dst, int npad)
 Zeroes the specified number of pad bytes.
EBF_ctb * QDF_esbRepack (const QDF_esbEvt *esb, int cid, EBF_ctb *ctb, unsigned int *nxt)
 Repacks the information in the Event Summary Block back into the contribution header.


Detailed Description

Generic utilities used in repacking/reformating events to EBF format.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QDF_esbRepack.c,v 1.3 2011/03/27 01:45:44 russell Exp $

Function Documentation

EBF_ctb * QDF_esbRepack ( const QDF_esbEvt esb,
int  cid,
EBF_ctb *  ctb,
unsigned int *  nxt 
)

Repacks the information in the Event Summary Block back into the contribution header.

Returns:
Pointer to the next location to write to
Parameters:
esb The Event Summary Block. This contains all the information needed to complete the contribution
cid The contribution header to complete
ctb The contribution to completed
nxt The next location to write to

References QDF_esbEvtCtbHdrGet(), and zero_pad_bytes().

Referenced by QDF_acdPedRepack(), QDF_acdStdRepack(), and temRepack().

static __inline unsigned int zero_pad_bytes ( unsigned int *  dst,
int  npad 
) [static]

Zeroes the specified number of pad bytes.

Parameters:
dst The destination address to start zeroing at
npad The number of pad bytes

Referenced by QDF_esbRepack().


Generated on Fri Sep 30 18:29:34 2011 by  doxygen 1.5.8