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


Interface   Data Structures   File List   Data Fields   Globals  

QDF_tkr.c File Reference

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

#include "QSE/QDF_tkr.h"
#include "QDF_tkr_def.h"
#include "QSD/QFR_file.h"
#include "QSD/QFR_cdm.h"
#include "LSE/CDF_tkrdef.h"
#include "TCC_DB/TCC_DB_schema.h"
#include <stdio.h>

Defines

#define NULL   ((void *)0)

Functions

static unsigned int tkrCtxCfgConstruct (QDF_tkrCtx *ctx, const TCC_DB_schema *schema, const char *name)
 Constructs the TKR configuration from the specified database.
static int splits_construct (QDF_tkrSplits *splits, const TCC_DB_schema *schema)
 Constructs the Tracker Split Point database.
static __inline void splits_default_construct (QDF_tkrSplits *splits)
 Initializes the track split points to their default values.
int QDF_tkrCtxSizeof (unsigned int level, void *prm)
 Returns the size, in bytes of the TKR decoding context needed to support the specified compression level.
QDF_tkrCtxQDF_tkrCtxConstruct (QDF_tkrCtx *ctx, unsigned int level, QDF_tkrCache *cache, const QSE_ctx *qse)
 Constructs (initializes) the specified TKR decoding context structure.
int QDF_tkrCtxUpdate (QDF_tkrCtx *ctx, QFR_fileCtx *qfr, const CDF_tkrBdy *bdy)
 Updates the ACD context from the datagram contribution.
static int fill_splits (QDF_tkrSplits *splits, int twr, int lyr, int lo, int hi)
int QDF_tkrEvtSizeof (unsigned int level, void *prm)
 Returns the size, in bytes of QDF_tkr event needed to support the specified compression level.
QDF_tkrEvtQDF_tkrEvtConstruct (QDF_tkrEvt *evt, unsigned int level, void *prm, QDF_exc *exc, QDF_esbEvt *esb, QDF_gemEvt *gem, QDF_errEvt *err)
 Constructs (initializes) the specified TKR event structure.


Detailed Description

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

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QDF_tkr.c,v 1.6 2009/05/01 01:19:38 russell Exp $

Function Documentation

QDF_esbCtx * QDF_tkrCtxConstruct ( QDF_tkrCtx ctx,
unsigned int  level,
QDF_tkrCache *  cache,
const QSE_ctx qse 
)

Constructs (initializes) the specified TKR 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.
cache The TKR caches
qse Pointer to the public/generic QSE context parameter

int QDF_tkrCtxSizeof ( unsigned int  level,
void *  prm 
)

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

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

int QDF_tkrCtxUpdate ( QDF_tkrCtx ctx,
QFR_fileCtx *  qfr,
const CDF_tkrBdy *  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_esbCtx * QDF_tkrEvtConstruct ( QDF_tkrEvt evt,
unsigned int  level,
void *  prm,
QDF_exc exc,
QDF_esbEvt esb,
QDF_gemEvt gem,
QDF_errEvt err 
)

Constructs (initializes) the specified TKR event structure.

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

int QDF_tkrEvtSizeof ( unsigned int  level,
void *  prm 
)

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

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

static int splits_construct ( QDF_tkrSplits splits,
const TCC_DB_schema *  schema 
) [static]

Constructs the Tracker Split Point database.

Returns:
Status
Parameters:
splits The Tracker Split Point database to fill
schema The Tracker Configuration database
If a TCC_DB CDM database is found, then the values are taken from there, otherwise, they are just defaulted to the mid-point (12/12)

static __inline void splits_default_construct ( QDF_tkrSplits splits  )  [static]

Initializes the track split points to their default values.

Parameters:
splits The TKR split point limits structure to initialize

static unsigned int tkrCtxCfgConstruct ( QDF_tkrCtx ctx,
const TCC_DB_schema *  schema,
const char *  name 
) [static]

Constructs the TKR configuration from the specified database.

Return values:
!= 0 The checksum.
== 0 Failure (0 is not a valid checksum
Parameters:
ctx The TKR context structure
schema The TKR configuration database schema
name The TKR configuration file name,


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