GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / dev > qse / rhel5-64
#include <QSE/QDF_esb.h>
#include <QDF_esb_def.h>
#include <EDS/EBF_esw.h>
#include <EDS/EBF_ebw.h>
#include <EDS/EBF_cid.h>
#include <LDT/BFU.h>
#include <PBI/FFS.ih>
Defines | |
#define | NULL ((void *)(0)) |
#define | PARITY_K_ODD 0x9669 |
A vector of bits whose bit number (counting from least significant bit = 0) gives the odd parity of a nibble of that bit number. | |
Functions | |
static __inline int | parityOdd16Calc (unsigned short int hword) |
Calculates the odd parity over the 16 bits in the specified half word. | |
int | QDF_esbCtxSizeof (unsigned int level, void *prm) |
Returns the size, in bytes of the Event Summary Block decoding context needed to support the specified compression level. | |
QDF_esbCtx * | QDF_esbCtxConstruct (QDF_esbCtx *ctx, unsigned int level, void *prm, const QSE_ctx *qse) |
Constructs (initializes) the specified Event Summary Block decoding context structure. | |
int | QDF_esbEvtSizeof (unsigned int level, void *prm) |
Returns the size, in bytes of QDF Event Summary Block needed to support the specified compression level. | |
QDF_esbEvt * | QDF_esbEvtConstruct (QDF_esbEvt *evt, unsigned int level, void *prm, QDF_exc *exc) |
Constructs (initializes) the specified Event Summary Block event structure. | |
__inline EBF_ebw | QDF_esbEvtEbwGet (const QDF_esbEvt *evt, int cid) |
Returns the event builder word for the specified contributor id. | |
__inline EBF_esw | QDF_esbEvtEswGet (const QDF_esbEvt *evt, int cid) |
Returns the event summary word for the specified contributor id. | |
EBF_ctbHdr | QDF_esbEvtCtbHdrGet (const QDF_esbEvt *evt, int cid) |
Returns the contributor header for the specified contributor id. | |
unsigned int | QDF_esbEvtCidsGet (const QDF_esbEvt *evt) |
Returns a mask of the contributor that are present. | |
unsigned int | QDF_esbEvtDgnidsGet (const QDF_esbEvt *evt) |
Returns the left-justified bit mask of TEMs with a diagnostic contribution. | |
unsigned int | QDF_esbEvtErridsGet (const QDF_esbEvt *evt) |
Returns the left-justified bit mask of TEMs with an error contribution. | |
unsigned int | QDF_esbEvtSeqGet (const QDF_esbEvt *evt) |
Returns the event sequence number. | |
BFU | QDF_esbDecode (QDF_esbCtx *qdf, QDF_esbEvt *esb, const unsigned int *src, unsigned int max, BFU bfu) |
Decodes the Event Summary Block. |
CVS $Id: QDF_esb.c,v 1.6 2011/03/27 01:45:44 russell Exp $
#define PARITY_K_ODD 0x9669 |
A vector of bits whose bit number (counting from least significant bit = 0) gives the odd parity of a nibble of that bit number.
Idx Parity Index Parity Index Parity Index Parity C 1 8 0 4 0 0 1 D 0 9 1 5 1 1 0 E 0 A 1 6 1 2 0 F 1 B 0 7 0 3 1 0x 9 6 6 9
Referenced by parityOdd16Calc().
int parityOdd16Calc | ( | unsigned short int | hword | ) | [static] |
Calculates the odd parity over the 16 bits in the specified half word.
hword | The half word (short int) to calculate the parity of. |
References PARITY_K_ODD.
Referenced by QDF_esbEvtEbwGet().
QDF_esbCtx* QDF_esbCtxConstruct | ( | QDF_esbCtx * | ctx, | |
unsigned int | level, | |||
void * | prm, | |||
const QSE_ctx * | qse | |||
) |
Constructs (initializes) the specified Event Summary Block decoding context structure.
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 | Pointer to the public/generic QSE context parameter |
References _QDF_esbCtx::qse.
int QDF_esbCtxSizeof | ( | unsigned int | level, | |
void * | prm | |||
) |
Returns the size, in bytes of the Event Summary Block 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 |
BFU QDF_esbDecode | ( | QDF_esbCtx * | qdf, | |
QDF_esbEvt * | esb, | |||
const unsigned int * | src, | |||
unsigned int | max, | |||
BFU | bfu | |||
) |
Decodes the Event Summary Block.
qdf | The compressed data decoding context | |
esb | The event summary 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 |
References _QDF_esbEvt::abs_ids, _QDF_esw::bf, _QDF_esbEvt::dgn_ids, _QDF_esbEvt::ebf_esw, _QDF_esbEvt::err_ids, _QDF_esbEvt::esw, _QDF_esbEvt::latp_dst, QDF_ESW_S_CXB, QDF_ESW_S_GSB, QDF_ESW_S_LATP_DST, QDF_ESW_S_SEQUENCE, QDF_ESW_V_CXB, _QDF_esbEvt::rsp_ids, and _QDF_esw::ui.
unsigned int QDF_esbEvtCidsGet | ( | const QDF_esbEvt * | evt | ) |
Returns a mask of the contributor that are present.
evt | The target ESB event structure. |
References _QDF_esbEvt::abs_ids.
Referenced by temRepack().
QDF_esbEvt* QDF_esbEvtConstruct | ( | QDF_esbEvt * | evt, | |
unsigned int | level, | |||
void * | prm, | |||
QDF_exc * | exc | |||
) |
Constructs (initializes) the specified Event Summary Block event structure.
evt | The ESB 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 |
References _QDF_esbEvt::exc.
EBF_ctbHdr QDF_esbEvtCtbHdrGet | ( | const QDF_esbEvt * | evt, | |
int | cid | |||
) |
Returns the contributor header for the specified contributor id.
evt | The target ESB event structure. | |
cid | The contributor ID |
References QDF_esbEvtEbwGet(), and QDF_esbEvtEswGet().
Referenced by QDF_esbRepack(), and QDF_gemRepack().
unsigned int QDF_esbEvtDgnidsGet | ( | const QDF_esbEvt * | evt | ) |
Returns the left-justified bit mask of TEMs with a diagnostic contribution.
evt | The target ESB event structure. |
References _QDF_esbEvt::dgn_ids.
Referenced by temRepack().
__inline EBF_ebw QDF_esbEvtEbwGet | ( | const QDF_esbEvt * | evt, | |
int | cid | |||
) |
Returns the event builder word for the specified contributor id.
evt | The target ESB event structure. | |
cid | The contributor ID |
References _QDF_esbEvt::latp_dst, parityOdd16Calc(), and _QDF_esbEvt::rsp_ids.
Referenced by QDF_esbEvtCtbHdrGet().
unsigned int QDF_esbEvtErridsGet | ( | const QDF_esbEvt * | evt | ) |
Returns the left-justified bit mask of TEMs with an error contribution.
evt | The target ESB event structure. |
References _QDF_esbEvt::err_ids.
Referenced by temRepack().
__inline EBF_esw QDF_esbEvtEswGet | ( | const QDF_esbEvt * | evt, | |
int | cid | |||
) |
Returns the event summary word for the specified contributor id.
evt | The target ESB event structure. | |
cid | The contributor ID |
References _QDF_esbEvt::dgn_ids, _QDF_esbEvt::ebf_esw, and _QDF_esbEvt::err_ids.
Referenced by QDF_esbEvtCtbHdrGet().
unsigned int QDF_esbEvtSeqGet | ( | const QDF_esbEvt * | evt | ) |
Returns the event sequence number.
evt | The target ESB event structure. |
References _QDF_esw::bf, and _QDF_esbEvt::esw.
int QDF_esbEvtSizeof | ( | unsigned int | level, | |
void * | prm | |||
) |
Returns the size, in bytes of QDF Event Summary Block 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 |