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


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 "EDS/FFS.h"

Typedefs

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.2 2009/05/01 01:09:42 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

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

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

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

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


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