GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / dev > qse / rhel5-64
#include <QSE/QDF_calRepack.h>
#include <QDF_cal_def.h>
#include <PBI/FFS.ih>
#include <dprintf.h>
#include <string.h>
Defines | |
#define | print_title_bar() |
Functions | |
static __inline unsigned int | repack_cal_log (const signed short int *syms, const ECR_calLog *clb, int col, int rngN, int rngP) |
Repacks one CAL log data word using symbol values as the pedestal subtracted ADC value and then the full ADC value by adding on the pedestal. The restoring ranges and column are added. | |
static __inline unsigned int | form_pair_cnts (unsigned int cnts, unsigned int *dst, unsigned int **dsts) |
static __inline unsigned int * | cal_copy_repack (const QDF_calEvtCopyDir *dir, int tem, unsigned int *dst, const EBF_ctb *end) |
Repacks the CAL event for the specified TEM into its EBF format by copying the data into the output stream. | |
unsigned int * | QDF_calStd1Repack (const QDF_calEvt *cal, int tem, unsigned int *dst, const EBF_ctb *end) |
Repacks a single-range, zero-suppressed CAL event for the specified TEM into its EBF format. | |
unsigned int * | QDF_calStd4Repack (const QDF_calEvt *cal, int tem, unsigned int *dst, const EBF_ctb *end) |
Repacks a 4-range, zero-suppressed CAL event for the specified TEM into its EBF format The input data must be for range, non-zero suppressed. | |
unsigned int * | QDF_calPed1Repack (const QDF_calEvt *cal, int tem, unsigned int *dst, const EBF_ctb *end) |
Repacks the CAL event for the specified TEM into its EBF format The input data must be single range, non-zero suppressed. | |
unsigned int * | QDF_calPed4Repack (const QDF_calEvt *cal, int tem, unsigned int *dst, const EBF_ctb *end) |
Repacks the CAL event for the specified TEM into its EBF format The input data must be for range, non-zero suppressed. |
CVS $Id: QDF_calRepack.c,v 1.4 2011/03/27 01:45:44 russell Exp $
static __inline unsigned int * cal_copy_repack | ( | const QDF_calEvtCopyDir * | dir, | |
int | tem, | |||
unsigned int * | dst, | |||
const EBF_ctb * | end | |||
) | [static] |
Repacks the CAL event for the specified TEM into its EBF format by copying the data into the output stream.
dir | The copy directory. This contains a map of the active towers plus a list of descriptors for each tower. The | |
tem | Which TEM | |
dst | The EBF destination address | |
end | The address just past the last legitimate address |
References _QDF_calEvtCopyDsc::dat, _QDF_calEvtCopyDir::map, _QDF_calEvtCopyDsc::nbytes, and _QDF_calEvtCopyDir::twrs.
Referenced by QDF_calPed1Repack(), and QDF_calPed4Repack().
unsigned int * QDF_calPed1Repack | ( | const QDF_calEvt * | cal, | |
int | tem, | |||
unsigned int * | dst, | |||
const EBF_ctb * | end | |||
) |
Repacks the CAL event for the specified TEM into its EBF format The input data must be single range, non-zero suppressed.
cal | The unpacked CAL event data | |
tem | Which TEM | |
dst | The EBF destination address | |
end | The address just past the last legitimate address |
References cal_copy_repack(), _QDF_calPedEvt::clb, _QDF_calPedEvt::dir, _QDF_calPedEvt::map, _QDF_calPedEvt::min, _QDF_calEvt::ped, repack_cal_log(), _QDF_calPedEvt::style, and _QDF_calPedEvt::syms.
Referenced by QDF_temPed1Repack().
unsigned int * QDF_calPed4Repack | ( | const QDF_calEvt * | cal, | |
int | tem, | |||
unsigned int * | dst, | |||
const EBF_ctb * | end | |||
) |
Repacks the CAL event for the specified TEM into its EBF format The input data must be for range, non-zero suppressed.
cal | The unpacked CAL event data | |
tem | Which TEM | |
dst | The EBF destination address | |
end | The address just past the last legitimate address |
References cal_copy_repack(), _QDF_calPedEvt::clb, _QDF_calPedEvt::dir, _QDF_calPedEvt::map, _QDF_calEvt::ped, repack_cal_log(), _QDF_calPedEvt::rng, _QDF_calPedEvt::style, and _QDF_calPedEvt::syms.
Referenced by QDF_temPed4Repack().
unsigned int * QDF_calStd1Repack | ( | const QDF_calEvt * | cal, | |
int | tem, | |||
unsigned int * | dst, | |||
const EBF_ctb * | end | |||
) |
Repacks a single-range, zero-suppressed CAL event for the specified TEM into its EBF format.
cal | The unpacked CAL event data | |
tem | Which TEM | |
dst | The EBF destination address | |
end | The address just past the last legitimate address |
References _QDF_calStdEvt::atwrs, _QDF_calEvtPhas::buf, _QDF_calStdEvt::map, _QDF_calEvtAdrsTwr::nlogs, _QDF_calEvtAdrsTwr::offset, _QDF_calStdEvt::phas, and _QDF_calEvt::std.
Referenced by QDF_temStd1Repack().
unsigned int * QDF_calStd4Repack | ( | const QDF_calEvt * | cal, | |
int | tem, | |||
unsigned int * | dst, | |||
const EBF_ctb * | end | |||
) |
Repacks a 4-range, zero-suppressed CAL event for the specified TEM into its EBF format The input data must be for range, non-zero suppressed.
cal | The unpacked CAL event data | |
tem | Which TEM | |
dst | The EBF destination address | |
end | The address just past the last legitimate address |
References _QDF_calStdEvt::atwrs, _QDF_calEvtPhas::buf, _QDF_calStdEvt::map, _QDF_calStdEvt::nlogs, _QDF_calEvtAdrsTwr::offset, _QDF_calStdEvt::phas, _QDF_calEvtAdrsTwr::rng_buf, and _QDF_calEvt::std.
Referenced by QDF_temStd4Repack().
static __inline unsigned int repack_cal_log | ( | const signed short int * | syms, | |
const ECR_calLog * | clb, | |||
int | col, | |||
int | rngN, | |||
int | rngP | |||
) | [static] |
Repacks one CAL log data word using symbol values as the pedestal subtracted ADC value and then the full ADC value by adding on the pedestal. The restoring ranges and column are added.
syms | The pedestal subtracted PHA values for the - (element 0) and + log end (element 1). | |
clb | The calibration constants to be used added back on | |
col | The column number | |
rngN | The - range value | |
rngP | The + range value |
Referenced by QDF_calPed1Repack(), and QDF_calPed4Repack().