GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-2-2 > qse / sun-gcc
#include "QSE/QDF_dgn.h"
#include "QSE/QDF_gem.h"
#include "QSE/QDF_exc.h"
#include "QDF_dgn_def.h"
#include "QDF_esb_def.h"
#include "QDF_exc_def.h"
#include "QDF_err_def.h"
#include "QDF_cal_def.h"
#include "QDF_tkr_def.h"
#include "QDF_reverse4.h"
#include "dprintf.h"
#include "LSE/CDF_dgndef.h"
#include "LDT/RLD.h"
#include "LDT/BTD.h"
#include "LDT/BFU.h"
#include "LDT/BWU.h"
#include "LDT/BIT.h"
#include "EDS/EBF_gem.h"
#include "EDS/FFS.h"
Defines | |
#define | DEBUG |
#define | NULL ((void *)(0)) |
Functions | |
static int | reverse12 (const unsigned char(*rmap)[16], unsigned short int x) |
Does a bit-reversal of the upper 12 bits to the lower 12 bits. | |
static __inline void | reformat (unsigned int daccepts[3], const QDF_calEvtAdrsTwr *twr, const unsigned char(*rmap)[16]) |
Repacks the 8 layer x 12 column log accept maps into 3 x 32 bit maps. | |
static BFU | dgn_std_cal_accept_set_decode (unsigned int(*accepts)[2], const unsigned int *src, unsigned int max, BFU bfu, unsigned int d) |
static __inline BFU | dgn_std_cal_accept_mismatch_decode (unsigned int(*accept)[3][2], QDF_calEvtAdrsTwr const *atwr, unsigned int pos, unsigned int const *src, unsigned int max, BFU bfu) |
static __inline void | dgn_std_cal_accept_match_fill (QDF_dgnCalAcceptMatch *match, QDF_calEvtAdrsTwr const *atwr) |
static __inline BFU | dgn_std_cal_accept_decode (QDF_dgnCalAccept *accept, unsigned int map, unsigned int err_map, QDF_calStdEvt const *cal, unsigned int const *src, unsigned int max, BFU bfu) |
Decodes the CAL accept bits portion of the diagnostic data. | |
BFU | QDF_dgnStdDecode (QDF_dgnCtx *ctx, QDF_dgnEvt *evt, unsigned int const *src, unsigned int max, BFU bfu) |
Decodes the DGN. |
CVS $Id: QDF_dgn_std.c,v 1.1 2009/05/01 00:18:12 russell Exp $
static __inline BFU dgn_std_cal_accept_decode | ( | QDF_dgnCalAccept * | accept, | |
unsigned int | map, | |||
unsigned int | err_map, | |||
QDF_calStdEvt const * | cal, | |||
unsigned int const * | src, | |||
unsigned int | max, | |||
BFU | bfu | |||
) | [static] |
Decodes the CAL accept bits portion of the diagnostic data.
accept | Array of the 192 accept bits for each tower | |
map | The map of towers that have encoded accept bits | |
err_map | Left justified bit map of the CAL tems that are in errror | |
cal | The CAL data. The encoded data are the exceptions and must be XOR'ed with the CAL accept bits found in the data to produce the CAL diagnostic accept bits. | |
src | The input bit stream to be decoded | |
max | The maximum number of bits in the bit stream | |
bfu | The value of the current 32-bit word being decoded and the current bit position. |
BFU QDF_dgnStdDecode | ( | QDF_dgnCtx * | ctx, | |
QDF_dgnEvt * | evt, | |||
unsigned int const * | src, | |||
unsigned int | max, | |||
BFU | bfu | |||
) |
Decodes the DGN.
ctx | The compressed data decoding context | |
evt | The DGN 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 |
static __inline void reformat | ( | unsigned int | daccepts[3], | |
const QDF_calEvtAdrsTwr * | twr, | |||
const unsigned char * | rmap[16] | |||
) | [static] |
Repacks the 8 layer x 12 column log accept maps into 3 x 32 bit maps.
daccepts | The 3 x 32 bit maps to fill | |
twr | The address map for this tower | |
rmap | A mapping function to assist in reversing the layer maps. Unfortunately the column maps in twr are arranged from MSB to LSB while the column maps in the diagnostic data are LSB to MSB, so they need to be reversed. |
static int reverse12 | ( | const unsigned char * | rmap[16], | |
unsigned short int | w | |||
) | [static] |
Does a bit-reversal of the upper 12 bits to the lower 12 bits.
rmap | The map to implement a 4 bit reversal. | |
w | The word to reverse |