GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / dev > qse / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

QDF_temRepack.c File Reference

Repacks the CAL,TKR, error and diagnostic contributions to all active TEMS. More...

#include <QSE/QDF_temRepack.h>
#include <QSE/QDF_calRepack.h>
#include <QSE/QDF_tkrRepack.h>
#include <QSE/QDF_errRepack.h>
#include <QSE/QDF_dgnRepack.h>
#include <QSE/QDF_esbRepack.h>
#include <QSE/QDF_esb.h>
#include <QSE/QDF_temdef.h>
#include <QDF_err_def.h>
#include <EDS/EBF_cid.h>
#include <PBI/FFS.ih>

Typedefs

typedef struct _QDF_esbEvt QDF_esbEvt
 Typedef for struct _QDF_esbEvt.
typedef struct _QDF_calEvt QDF_calEvt
 Typedef for struct _QDF_calEvt.
typedef struct _QDF_tkrEvt QDF_tkrEvt
 Typedef for _QDF_tkrEvt.
typedef unsigned int *(* QdfCalRepacker )(const QDF_calEvt *cal, int tem_id, unsigned int *nxt, const EBF_ctb *ctb)
 Function signature for repacking the CAL data.

Functions

static EBF_ctb * temRepack (const QDF_temEvt *tem, EBF_ctb *ctb, const EBF_ctb *end, QdfCalRepacker cal_repack)
 Generic TEM repacker.
EBF_ctb * QDF_temStd1Repack (const QDF_temEvt *tem, EBF_ctb *ctb, const EBF_ctb *end)
 Fills in the TEM contributions for single-range, zero-suppressed events.
EBF_ctb * QDF_temStd4Repack (const QDF_temEvt *tem, EBF_ctb *ctb, const EBF_ctb *end)
 Fills in the TEM contributions for single-range, zero-suppressed events.
EBF_ctb * QDF_temPed1Repack (const QDF_temEvt *tem, EBF_ctb *ctb, const EBF_ctb *end)
 Fills in the TEM contributions for pedestal (non-zero suppressed) events in single range readout mode.
EBF_ctb * QDF_temPed4Repack (const QDF_temEvt *tem, EBF_ctb *ctb, const EBF_ctb *end)
 Fills in the TEM contributions for pedestal (non-zero suppressed) events in four range readout mode.


Detailed Description

Repacks the CAL,TKR, error and diagnostic contributions to all active TEMS.

Author:
JJRussell - russell@slac.stanford.edu

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

This acts as a driver to fill in each TEM from its various subpieces.


Typedef Documentation

unsigned int *(* QdfCalRepacker)(const QDF_calEvt *cal, int tem_id, unsigned int *nxt, const EBF_ctb *ctb)

Function signature for repacking the CAL data.

Parameters:
cal The CAL data to repack
tem_id Which CAL TEM to repack
nxt The repack address
ctb The address after the last available address. Meant to be used as maximum address, i.e. don't fill data at this point or beyond


Function Documentation

EBF_ctb * QDF_temPed1Repack ( const QDF_temEvt tem,
EBF_ctb *  ctb,
const EBF_ctb *  end 
)

Fills in the TEM contributions for pedestal (non-zero suppressed) events in single range readout mode.

Returns:
The next contributor to fill in
Parameters:
tem The TEM data to repack
ctb The EBF contributor to fill in
end The address after the last available address

References QDF_calPed1Repack(), and temRepack().

EBF_ctb * QDF_temPed4Repack ( const QDF_temEvt tem,
EBF_ctb *  ctb,
const EBF_ctb *  end 
)

Fills in the TEM contributions for pedestal (non-zero suppressed) events in four range readout mode.

Returns:
The next contributor to fill in
Parameters:
tem The TEM data to repack
ctb The EBF contributor to fill in
end The address after the last available address

References QDF_calPed4Repack(), and temRepack().

EBF_ctb * QDF_temStd1Repack ( const QDF_temEvt tem,
EBF_ctb *  ctb,
const EBF_ctb *  end 
)

Fills in the TEM contributions for single-range, zero-suppressed events.

Returns:
The next contributor to fill in
Parameters:
tem The TEM data to repack
ctb The EBF contributor to fill in
end The address after the last available address

References QDF_calStd1Repack(), and temRepack().

EBF_ctb * QDF_temStd4Repack ( const QDF_temEvt tem,
EBF_ctb *  ctb,
const EBF_ctb *  end 
)

Fills in the TEM contributions for single-range, zero-suppressed events.

Returns:
The next contributor to fill in
Parameters:
tem The TEM data to repack
ctb The EBF contributor to fill in
end The address after the last available address

References QDF_calStd4Repack(), and temRepack().

static EBF_ctb * temRepack ( const QDF_temEvt tem,
EBF_ctb *  ctb,
const EBF_ctb *  end,
QdfCalRepacker  cal_repack 
) [static]

Generic TEM repacker.

Returns:
The next contributor to fill in
Parameters:
tem The TEM data to repack
ctb The EBF contributor to fill in
end The address after the last available address
cal_repack The CAL repacker to use

References _QDF_temEvt::cal, _QDF_temEvt::dgn, _QDF_temEvt::err, _QDF_tkrEvt::err, _QDF_temEvt::esb, _QDF_tkrEvt::esb, QDF_dgnRepack(), QDF_errRepack(), QDF_esbEvtCidsGet(), QDF_esbEvtDgnidsGet(), QDF_esbEvtErridsGet(), QDF_esbRepack(), QDF_tkrRepack(), and _QDF_temEvt::tkr.

Referenced by QDF_temPed1Repack(), QDF_temPed4Repack(), QDF_temStd1Repack(), and QDF_temStd4Repack().


Generated on Fri Nov 30 10:25:33 2012 by  doxygen 1.5.8