GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-0 > qse / sun-gcc


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 "EDS/EDS_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.2 2006/11/10 22:35:52 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

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


Generated on Thu Sep 2 14:54:54 2010 by  doxygen 1.5.3