GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSEP / V3-3-0

Constituent: qsep     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QDFP_evt.c File Reference

Construction/Deconstruction and sizing routines for the QDFP_evt structure. More...

#include "QDFP_evt.h"
#include "QDFP_evtRepack.h"
#include "QDFP_ctxdef.h"
#include "QDFP_evtdef.h"
#include "QSE/QDF_exc.h"
#include "QSE/QDF_acd.h"
#include "QSE/QDF_tem.h"
#include "QSE/QDF_err.h"
#include "QSE/QDF_cal.h"
#include "QSE/QDF_tkr.h"
#include "QSE/QDF_esb.h"
#include "QSE/QDF_gem.h"
#include "QSE/QDF_dgn.h"
#include "QSE/QSE_ctxUpdate.h"
#include "EDS/EBF_cid.h"

Include dependency graph for QDFP_evt.c:


Classes

struct  _Dispatch
 Defines the decode and repacking routines. More...

Typedefs

typedef struct _Dispatch Dispatch
 Typedef for struct _Dispatch.

Functions

int QDFP_evtSizeof (unsigned int resource_level, void *prm)
 Returns the size, in bytes, of the handle for updating the standard event meta-information.
void * QDFP_evtConstruct (QDFP_evt *evt, unsigned int resource_level, void *prm, void *ptr)
 Construct (initializes) the handle for updating the standard compressed data context information.
BFU QDFP_evtUpdate (QDFP_ctx *ctx, QDFP_evt *evt, const unsigned int *src, const unsigned int max, BFU bfu, QSE_ctxUpdateInfo *info)
 Decodes an event packed in the standard fashion.
BFU QDFP_evtStd1Decode (QDFP_ctx *ctx, QDFP_evt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes an event packed in the standard fashion.
BFU QDFP_evtStd4Decode (QDFP_ctx *ctx, QDFP_evt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes an event packed in the standard fashion.
BFU QDFP_evtPed1Decode (QDFP_ctx *ctx, QDFP_evt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes an event packed in non-zero suppressed mode.
BFU QDFP_evtPed4Decode (QDFP_ctx *ctx, QDFP_evt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes an event packed in non-zero suppressed mode.

Detailed Description

Construction/Deconstruction and sizing routines for the QDFP_evt structure.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QDFP_evt.c,v 1.3 2009/05/01 02:05:23 russell Exp $

Function Documentation

void * QDFP_evtConstruct ( QDFP_evt evt,
unsigned int  resource_level,
void *  prm,
void *  ptr 
)

Construct (initializes) the handle for updating the standard compressed data context information.

Returns:
Pointer to the next allocation adddress (i.e. ptr is advanced by the number of bytes consumed by this routine
Parameters:
evt The event structure to be initialize.
resource_level The maximum resource level. Attempts to expand event with resources needs above this value will return QSEP_STATUS_K_INSRSC, that is INSUFFICIENT RESOURCES.
prm A run-time set parameter used to stylize the configuration
ptr Memory to allocate the pieces from. This must be guaranteed by the caller to be large enough

BFU QDFP_evtPed1Decode ( QDFP_ctx ctx,
QDFP_evt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
)

Decodes an event packed in non-zero suppressed mode.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The event block to fill in
src The data source, i.e. the bit stream
max The maximum bit position
bfu The current bit position and temporary buffer

BFU QDFP_evtPed4Decode ( QDFP_ctx ctx,
QDFP_evt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
)

Decodes an event packed in non-zero suppressed mode.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The event block to fill in
src The data source, i.e. the bit stream
max The maximum bit position
bfu The current bit position and temporary buffer

int QDFP_evtSizeof ( unsigned int  resource_level,
void *  prm 
)

Returns the size, in bytes, of the handle for updating the standard event meta-information.

Returns:
The size, in bytes, of the handle for updating the standard event meta-information
Parameters:
resource_level The maximum resource level. Attempts to expand event with compression levels that use resources beyond this value will return QSEP_STATUS_K_INSRSC that is INSUFFICIENT RESOURCES. This must be a number between 0 and 15. This parameter plus prm must also be passed to QSEP_construct
prm A run-time set parameter used to stylize the configuration. This parameter plus max_level must also be passed to QSEP_construct.

BFU QDFP_evtStd1Decode ( QDFP_ctx ctx,
QDFP_evt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
)

Decodes an event packed in the standard fashion.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The event block to fill in
src The data source, i.e. the bit stream
max The maximum bit position
bfu The current bit position and temporary buffer

BFU QDFP_evtStd4Decode ( QDFP_ctx ctx,
QDFP_evt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
)

Decodes an event packed in the standard fashion.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The event block to fill in
src The data source, i.e. the bit stream
max The maximum bit position
bfu The current bit position and temporary buffer

BFU QDFP_evtUpdate ( QDFP_ctx ctx,
QDFP_evt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu,
QSE_ctxUpdateInfo *  info 
)

Decodes an event packed in the standard fashion.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The event block to fill in
src The data source, i.e. the bit stream
max The maximum bit position
bfu The current bit position and temporary buffer
info The standard update information block.


Generated on Sat Jun 20 01:49:16 2009 by  doxygen 1.5.3