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


Interface   Data Structures   File List   Data Fields   Globals  

QDF_dgn_ped.c File Reference

Decodes the DGN data when in the encoded in for pedestal events. More...

#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 "dprintf.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 NULL   ((void *)(0))

Functions

static __inline BFU dgn_ped_cal_accept_set_decode (unsigned int(*accepts)[2], const unsigned int *src, unsigned int max, BFU bfu)
 Decodes the CAL accept bits portion of the diagnostic data for one set of 32 log accept bits for each of log end.
static __inline BFU dgn_ped_cal_accept_twr_decode (unsigned int(*accepts)[3][2], unsigned int const *src, unsigned int max, BFU bfu)
 Decodes the CAL accept bits portion of the diagnostic data for one tower.
static __inline BFU dgn_ped_cal_accept_decode (QDF_dgnCalAccept *accept, unsigned int map, unsigned int err_map, QDF_calPedEvt const *cal, unsigned int const *src, unsigned int max, BFU bfu)
 Decodes the CAL accept bits portion of the diagnostic data for all towers with non-zero CAL diagnostic accept data.
BFU QDF_dgnPedDecode (QDF_dgnCtx *ctx, QDF_dgnEvt *evt, unsigned int const *src, unsigned int max, BFU bfu)
 Decodes the DGN.


Detailed Description

Decodes the DGN data when in the encoded in for pedestal events.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QDF_dgn_ped.c,v 1.1 2009/05/01 00:18:12 russell Exp $

Function Documentation

static __inline BFU dgn_ped_cal_accept_decode ( QDF_dgnCalAccept accept,
unsigned int  map,
unsigned int  err_map,
QDF_calPedEvt const *  cal,
unsigned int const *  src,
unsigned int  max,
BFU  bfu 
) [static]

Decodes the CAL accept bits portion of the diagnostic data for all towers with non-zero CAL diagnostic accept data.

Returns:
The updated BFU (current word being decoded and the current bit position).
Parameters:
accept Array of the 192 accept bits for each tower
map The map of towers that have encoded accept bits
err_map The map of erroring CAL towers.
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.

static __inline BFU dgn_ped_cal_accept_set_decode ( unsigned int *  accepts[2],
const unsigned int *  src,
unsigned int  max,
BFU  bfu 
) [static]

Decodes the CAL accept bits portion of the diagnostic data for one set of 32 log accept bits for each of log end.

Returns:
The updated BFU (current word being decoded and the current bit position).
Parameters:
accepts The 192 accept bits for the tower being decoded
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.
Decompression Details
Ths compression method works on the assumption that not many log accept bits are set for pedestal events. The 64 bits of log accept bits, 32 bits for each log end, in the following 3 blocks of data

static __inline BFU dgn_ped_cal_accept_twr_decode ( unsigned int *  accepts[3][2],
unsigned int const *  src,
unsigned int  max,
BFU  bfu 
) [static]

Decodes the CAL accept bits portion of the diagnostic data for one tower.

Returns:
The updated BFU (current word being decoded and the current bit position).
Parameters:
accepts The 192 accept bits for the tower being decoded
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_dgnPedDecode ( QDF_dgnCtx ctx,
QDF_dgnEvt evt,
unsigned int const *  src,
unsigned int  max,
BFU  bfu 
)

Decodes the DGN.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
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
Overview
This routine acts as a driver to decode the diagnostic contributions of pedestal events.
Details
For the purposes of data compression, the diagnostic contribution is viewed as being composed of 3 separate data structures

In addition there is a summary structure yielding 3 bit maps indicating which of the above structures have towers that differ from the /e expected values for that particular data structure. For


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