GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSEC / V3-3-1 > qsec_wb / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

decode.h File Reference

Top-level decoding routines. More...

#include "expand.h"
#include "EDS/EBF_gem.h"
#include "QSE/QSE_ebf.h"

Functions

unsigned int QSEC_decode (QSEC_expansion *exp, QSE_ebfEvt *oevt, const unsigned int *ievt)
 Decode the event held in the expansion structure into the QSE_evt structure.
void QSEC_update (QSEC_expansion *exp, EBF_gem *gem, unsigned int *seq, const unsigned int *ievt)
 Decode the GEM contribution and extract the 17 bit event sequence.


Detailed Description

Top-level decoding routines.

Author:
James Swain & Owen Saxton
Id
decode.h,v 1.4 2008/07/17 21:47:44 saxton Exp

Function Documentation

unsigned int QSEC_decode ( QSEC_expansion exp,
QSE_ebfEvt *  oevt,
const unsigned int *  ievt 
)

Decode the event held in the expansion structure into the QSE_evt structure.

Parameters:
exp Pointer to the expansion structure holding the histograms and encoder context
oevt Pointer to the location to output the decoded event
ievt Pointer to the location to input the encoded event
Returns:
Length, in bytes, of the event data

References QSEC_summary::aem, QSEC_expansion_::dtx, QSEC_summary::gem, QSEC_expansion_::gem, QSEC_expansion_::mode, QSEC_CURRENT_VERSION, QSEC_unpackRaw(), QSEC_VERS_FIXED_CAL, QSEC_VERS_NEW_SCHEME, QSEC_VERS_NEWER, QSEC_gemDecompress::raw, QSEC_summary::tem, and QSEC_expansion_::ver.

Referenced by QSEC_expand().

void QSEC_update ( QSEC_expansion exp,
EBF_gem *  gem,
unsigned int *  seq,
const unsigned int *  ievt 
)

Decode the GEM contribution and extract the 17 bit event sequence.

Parameters:
exp Pointer to the expansion structure holding the histograms and encoder context
gem Pointer to the location to place the decoded GEM contribution
seq Pointer to the location to place the 17-bit event sequence number
ievt Pointer to the location to input the encoded event number for use in QSE_ctxUpdateAtEvent

References QSEC_expansion_::dtx, QSEC_expansion_::gem, QSEC_expansion_::mode, QSEC_unpackRaw(), QSEC_VERS_FIXED_CAL, QSEC_VERS_ORIGINAL, QSEC_gemDecompress::raw, and QSEC_expansion_::ver.

Referenced by QSEC_updateAtRecord().


Generated on Thu Jan 27 12:57:36 2011 by  doxygen 1.5.8