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


Interface   Data Structures   File List   Data Fields   Globals  

QDF_acd.c File Reference

Generic sizeof and construct for decoding the ACD data when in the encoded in standard fashion. More...

#include "QSE/QDF_acd.h"
#include "QSE/QDF_gem.h"
#include "QDF_acd_def.h"
#include "QSD/QFR_file.h"
#include "QSD/QFR_cdm.h"
#include "LSE/CDF_acddef.h"
#include "LDT/HDD.h"
#include "CAL_DB/ACD_DB_schema_pedestals.h"
#include "PBI/Fletcher.h"
#include <stdio.h>

Defines

#define NULL   ((void *)(0))

Functions

static unsigned int acdCtxPedsConstruct (QDF_acdCtx *ctx, const ACD_DB_schema_pedestals *peds, const char *name)
 Constructs the pedestals from the ACD database of pedestals.
int QDF_acdCtxSizeof (unsigned int level, void *prm)
 Returns the size, in bytes of the ACD decoding context needed to support the specified compression level.
QDF_acdCtxQDF_acdCtxConstruct (QDF_acdCtx *ctx, unsigned int level, void *prm, const QSE_ctx *qse)
 Constructs (initializes) the specified ACD decoding context structure.
int QDF_acdCtxUpdate (QDF_acdCtx *ctx, QFR_fileCtx *qfr, const CDF_acdBdy *bdy)
 Updates the ACD context from the datagram contribution.
int QDF_acdEvtSizeof (unsigned int level, void *prm)
 Returns the size, in bytes of QDF_acd event needed to support the specified compression level.
QDF_acdEvtQDF_acdEvtConstruct (QDF_acdEvt *evt, unsigned int level, void *prm, QDF_exc *exc, QDF_esbEvt *esb, QDF_gemEvt *gem)
 Constructs (initializes) the specified ACD event structure.


Detailed Description

Generic sizeof and construct for decoding the ACD data when in the encoded in standard fashion.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QDF_acd.c,v 1.5 2008/06/09 21:15:17 russell Exp $

Function Documentation

static unsigned int acdCtxPedsConstruct ( QDF_acdCtx ctx,
const ACD_DB_schema_pedestals *  peds,
const char *  name 
) [static]

Constructs the pedestals from the ACD database of pedestals.

Returns:
The checksum. This is a Fletcher style checksum. On failure, 0 is returned
Parameters:
ctx The ACD context structure
peds The ACD pedestals database schema
name The ACD CDM database file name,

QDF_acdCtx * QDF_acdCtxConstruct ( QDF_acdCtx ctx,
unsigned int  level,
void *  prm,
const QSE_ctx qse 
)

Constructs (initializes) the specified ACD decoding context structure.

Returns:
Pointer to the context structure to construct
Parameters:
ctx The context structure to construct.
level The maximum level of compression that will be supported.
prm Additional configuation parameter, unused as of now
qse The generic datagram context

int QDF_acdCtxSizeof ( unsigned int  level,
void *  prm 
)

Returns the size, in bytes of the ACD decoding context needed to support the specified compression level.

Returns:
The size, in bytes, of the ACD decoding context
Parameters:
level The maximum level of compression that needs to be supported
prm Additional configuation parameter, unused as of now

int QDF_acdCtxUpdate ( QDF_acdCtx ctx,
QFR_fileCtx *  qfr,
const CDF_acdBdy *  bdy 
)

Updates the ACD context from the datagram contribution.

Return values:
0,Success 
0x80000001,Pedestal file error, not found
0x80000002,Pedestal file error, checksum does not match
Parameters:
ctx The context to update
qfr The file translation context
bdy The update information

QDF_acdEvt * QDF_acdEvtConstruct ( QDF_acdEvt evt,
unsigned int  level,
void *  prm,
QDF_exc exc,
QDF_esbEvt esb,
QDF_gemEvt gem 
)

Constructs (initializes) the specified ACD event structure.

Returns:
Pointer to the context structure to construct
Parameters:
evt The ACD event structure to construct.
level The maximum level of compression that will be supported.
prm Additional configuation parameter, unused as of now
exc The exception handling context.
esb Pointer to the Event Summary Data for this event
gem Pointer to the GEM data for this event

int QDF_acdEvtSizeof ( unsigned int  level,
void *  prm 
)

Returns the size, in bytes of QDF_acd event needed to support the specified compression level.

Returns:
The size, in bytes, of the ACD event
Parameters:
level The maximum level of compression that needs to be supported
prm Additional configuation parameter, unused as of now


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