GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-2-2 > qse / sun-gcc
#include "QSE/QDF_err.h"
#include "QSE/QDF_exc.h"
#include "QDF_esb_def.h"
#include "QDF_err_def.h"
#include "QDF_exc_def.h"
Defines | |
#define | NULL ((void *)0) |
Functions | |
int | QDF_errCtxSizeof (unsigned int level, void *prm) |
Returns the size, in bytes of the ERR decoding context needed to support the specified compression level. | |
QDF_errCtx * | QDF_errCtxConstruct (QDF_errCtx *ctx, unsigned int level, QDF_errCache *cache, const QSE_ctx *qse) |
Constructs (initializes) the specified ERR decoding context structure. | |
int | QDF_errCtxUpdate (QDF_errCtx *ctx, QFR_fileCtx *qfr, CDF_errBdy const *bdy) |
Updates the ERR context from the datagram contribution. | |
int | QDF_errEvtSizeof (unsigned int level, void *prm) |
Returns the size, in bytes of QDF_err event needed to support the specified compression level. | |
QDF_errEvt * | QDF_errEvtConstruct (QDF_errEvt *evt, unsigned int level, void *prm, QDF_exc *exc, QDF_esbEvt *esb, QDF_gemEvt *gem) |
Constructs (initializes) the specified ERR event structure. | |
static __inline unsigned int | phase_construct (unsigned int tag) |
Constructs the phase word from the tag value. | |
BFU | QDF_errDecode (QDF_errCtx *ctx, QDF_errEvt *evt, unsigned int const *src, unsigned int max, BFU bfu) |
Decodes the ERR block. |
CVS $Id: QDF_err.c,v 1.1 2009/05/01 00:21:44 russell Exp $
static __inline unsigned int phase_construct | ( | unsigned int | tag | ) | [static] |
Constructs the phase word from the tag value.
tag | The low 2 bits of the event sequence number |
QDF_esbCtx * QDF_errCtxConstruct | ( | QDF_errCtx * | ctx, | |
unsigned int | level, | |||
QDF_errCache * | cache, | |||
const QSE_ctx * | qse | |||
) |
Constructs (initializes) the specified ERR decoding context structure.
ctx | The context structure to construct. | |
level | The maximum level of compression that will be supported. | |
cache | The ERR caches | |
qse | Pointer to the public/generic QSE context parameter |
int QDF_errCtxSizeof | ( | unsigned int | level, | |
void * | prm | |||
) |
Returns the size, in bytes of the ERR decoding context needed to support the specified compression level.
level | The maximum level of compression that needs to be supported | |
prm | Additional configuation parameter, unused as of now |
int QDF_errCtxUpdate | ( | QDF_errCtx * | ctx, | |
QFR_fileCtx * | qfr, | |||
CDF_errBdy const * | bdy | |||
) |
Updates the ERR context from the datagram contribution.
0,Success |
ctx | The context to update | |
qfr | The file translation context | |
bdy | The update information, currently none |
BFU QDF_errDecode | ( | QDF_errCtx * | ctx, | |
QDF_errEvt * | evt, | |||
unsigned int const * | src, | |||
unsigned int | max, | |||
BFU | bfu | |||
) |
Decodes the ERR block.
ctx | The compressed data decoding context | |
evt | The ERR 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 |
QDF_esbCtx * QDF_errEvtConstruct | ( | QDF_errEvt * | evt, | |
unsigned int | level, | |||
void * | prm, | |||
QDF_exc * | exc, | |||
QDF_esbEvt * | esb, | |||
QDF_gemEvt * | gem | |||
) |
Constructs (initializes) the specified ERR event structure.
evt | The ERR 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 |
int QDF_errEvtSizeof | ( | unsigned int | level, | |
void * | prm | |||
) |
Returns the size, in bytes of QDF_err event needed to support the specified compression level.
level | The maximum level of compression that needs to be supported | |
prm | Additional configuation parameter, unused as of now |