GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSEP / V3-5-1 > qsep / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QDFP_evtRepack.c File Reference

Reformats the QDFP_evt to EBF format. More...

#include <QDFP_evtRepack.h>
#include <QDFP_evtdef.h>
#include <QSE/QDF_acdRepack.h>
#include <QSE/QDF_temRepack.h>
#include <QSE/QDF_gemRepack.h>
#include <QSE/QSE_evt.h>
#include <EDS/EBF_ctb.h>

Defines

#define NULL   ((void *)0)

Functions

static EBF_ctb * hdrRepack (QSE_ebfEvt *ebf, const EBF_ctb *end)
 Fills in the header.
int QDFP_evtStd1Repack (QDFP_evt *evt, QSE_ebfEvt *ebf, int ebf_size)
 Builds the EBF representation from the QSEP representation for single-range, zero suppressed events.
int QDFP_evtStd4Repack (QDFP_evt *evt, QSE_ebfEvt *ebf, int ebf_size)
 Builds the EBF representation from the QSEP representation for four-range, zero suppressed events.
int QDFP_evtPed1Repack (QDFP_evt *evt, QSE_ebfEvt *ebf, int ebf_size)
 Builds the EBF representation from the QSEP representation.
int QDFP_evtPed4Repack (QDFP_evt *evt, QSE_ebfEvt *ebf, int ebf_size)
 Builds the EBF representation from the QSEP representation.


Detailed Description

Reformats the QDFP_evt to EBF format.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QDFP_evtRepack.c,v 1.3 2011/03/29 18:49:04 russell Exp $

Function Documentation

static EBF_ctb * hdrRepack ( QSE_ebfEvt *  ebf,
const EBF_ctb *  end 
) [static]

Fills in the header.

Returns:
The next location to fill in
Parameters:
ebf The EBF structure to fill in the header
end The address after the last available address

Referenced by QDFP_evtPed1Repack(), QDFP_evtPed4Repack(), QDFP_evtStd1Repack(), and QDFP_evtStd4Repack().

int QDFP_evtPed1Repack ( QDFP_evt evt,
QSE_ebfEvt *  ebf,
int  ebf_size 
)

Builds the EBF representation from the QSEP representation.

Returns:
The size, in bytes, of the built EBF event
Parameters:
evt The event to reformat
ebf The memory to receive the EBF event
ebf_size The size, in bytes, of the available memory in the EBF event buffer

References _QDFP_evt::acd, _QDFP_evt::gem, hdrRepack(), and _QDFP_evt::tem.

Referenced by QDFP_evtAUpdate(), QDFP_evtBUpdate(), and QDFP_evtCUpdate().

int QDFP_evtPed4Repack ( QDFP_evt evt,
QSE_ebfEvt *  ebf,
int  ebf_size 
)

Builds the EBF representation from the QSEP representation.

Returns:
The size, in bytes, of the built EBF event
Parameters:
evt The event to reformat
ebf The memory to receive the EBF event
ebf_size The size, in bytes, of the available memory in the EBF event buffer

References _QDFP_evt::acd, _QDFP_evt::gem, hdrRepack(), and _QDFP_evt::tem.

Referenced by QDFP_evtAUpdate(), QDFP_evtBUpdate(), and QDFP_evtCUpdate().

int QDFP_evtStd1Repack ( QDFP_evt evt,
QSE_ebfEvt *  ebf,
int  ebf_size 
)

Builds the EBF representation from the QSEP representation for single-range, zero suppressed events.

Returns:
The size, in bytes, of the built EBF event
Parameters:
evt The event to reformat
ebf The memory to receive the EBF event
ebf_size The size, in bytes, of the available memory in the EBF event buffer

References _QDFP_evt::acd, _QDFP_evt::gem, hdrRepack(), and _QDFP_evt::tem.

Referenced by QDFP_evtAUpdate(), QDFP_evtBUpdate(), and QDFP_evtCUpdate().

int QDFP_evtStd4Repack ( QDFP_evt evt,
QSE_ebfEvt *  ebf,
int  ebf_size 
)

Builds the EBF representation from the QSEP representation for four-range, zero suppressed events.

Returns:
The size, in bytes, of the built EBF event
Parameters:
evt The event to reformat
ebf The memory to receive the EBF event
ebf_size The size, in bytes, of the available memory in the EBF event buffer

References _QDFP_evt::acd, _QDFP_evt::gem, hdrRepack(), and _QDFP_evt::tem.

Referenced by QDFP_evtAUpdate(), QDFP_evtBUpdate(), and QDFP_evtCUpdate().


Generated on Fri Nov 30 11:42:41 2012 by  doxygen 1.5.8