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


Interface   Data Structures   File List   Data Fields   Globals  

QDF_cal_ped.c File Reference

Decodes the cal data when in the encoded in pedestal (no-zero suppressed) fashion. The data may be either 1-range or 4-range readout. More...

#include "QSE/QDF_cal.h"
#include "QSE/QDF_esb.h"
#include "QSE/QDF_exc.h"
#include "QDF_cal_def.h"
#include "QDF_exc_def.h"
#include "LDT/BFU.h"
#include "LDT/HDD.h"
#include "dprintf.h"

Typedefs

typedef enum
_CDF_CAL_PED_STYLE_K 
CDF_CAL_PED_STYLE_K
 Typedef for enum _CDF_CAL_PED_STYLE_K.
typedef BFU(* Decoder )(QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Callback signature for a QDF event decoder.

Enumerations

enum  _CDF_CAL_PED_STYLE_K {
  CDF_CAL_PED_STYLE_K_COPY = 0,
  CDF_CAL_PED_STYLE_K_HDE = 1,
  CDF_CAL_PED_STYLE_K_RSVD_2 = 2,
  CDF_CAL_PED_STYLE_K_RSVD_3 = 3
}
 Enumerates the major format styles for CAL pedestal data. More...

Functions

static BFU cal_ped1_style_0 (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when encoded as in style 0 format. This is format is almost a straight copy of the CAL data.
static BFU cal_ped1_style_1 (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when encoded using in style 1. This format style uses a limited range huffman table. The limited means that only the central part of the pedestal subtracted data is encoded using a huffman table. Those value outside the central core are encoded in a look-aside exception list.
static BFU cal_ped1_style_2 (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when encoded using a style 2. Currently there is no style 2, so any CAL data encoded in style 2 represents a serious error.
static BFU cal_ped1_style_3 (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when encoded using a style 3. Currently there is no style 2, so any CAL data encoded in style 3 represents a serious error.
static BFU cal_ped4_style_0 (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when encoded as in style 0 format. This is format is almost a straight copy of the CAL data.
static BFU cal_ped4_style_1 (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when encoded using in style 1. This format style uses a limited range huffman table. The limited means that only the central part of the pedestal subtracted data is encoded using a huffman table. Those value outside the central core are encoded in a look-aside exception list.
static BFU cal_ped4_style_2 (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when encoded using a style 2. Currently there is no style 2, so any CAL data encoded in style 2 represents a serious error.
static BFU cal_ped4_style_3 (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when encoded using a style 3. Currently there is no style 2, so any CAL data encoded in style 3 represents a serious error.
BFU QDF_calPed1Decode (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when the data was acquired with zero-suppression disabled and single range readout.
BFU QDF_calPed4Decode (QDF_calCtx *ctx, QDF_calEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)
 Decodes the CAL when the data was acquired with zero-suppression disabled and four range readout.


Detailed Description

Decodes the cal data when in the encoded in pedestal (no-zero suppressed) fashion. The data may be either 1-range or 4-range readout.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QDF_cal_ped.c,v 1.4 2009/05/01 00:51:25 russell Exp $

Typedef Documentation

typedef BFU(* Decoder)(QDF_acdCtx *ctx, QDF_acdEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu)

Callback signature for a QDF event decoder.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The CAL 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
Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
qdf The compressed data decoding context
evt The ACD 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


Enumeration Type Documentation

enum _CDF_CAL_PED_STYLE_K

Enumerates the major format styles for CAL pedestal data.

Enumerator:
CDF_CAL_PED_STYLE_K_COPY  Straight copy style
CDF_CAL_PED_STYLE_K_HDE  Huffman Distribuion Encode
CDF_CAL_PED_STYLE_K_RSVD_2  Reserved
CDF_CAL_PED_STYLE_K_RSVD_3  Reserved


Function Documentation

static BFU cal_ped1_style_0 ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
) [static]

Decodes the CAL when encoded as in style 0 format. This is format is almost a straight copy of the CAL data.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The CAL 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 BFU cal_ped1_style_1 ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max_pos,
BFU  bfu 
) [static]

Decodes the CAL when encoded using in style 1. This format style uses a limited range huffman table. The limited means that only the central part of the pedestal subtracted data is encoded using a huffman table. Those value outside the central core are encoded in a look-aside exception list.

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

static BFU cal_ped1_style_2 ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
) [static]

Decodes the CAL when encoded using a style 2. Currently there is no style 2, so any CAL data encoded in style 2 represents a serious error.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The CAL 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 BFU cal_ped1_style_3 ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
) [static]

Decodes the CAL when encoded using a style 3. Currently there is no style 2, so any CAL data encoded in style 3 represents a serious error.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The CAL 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 BFU cal_ped4_style_0 ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
) [static]

Decodes the CAL when encoded as in style 0 format. This is format is almost a straight copy of the CAL data.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The CAL 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 BFU cal_ped4_style_1 ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max_pos,
BFU  bfu 
) [static]

Decodes the CAL when encoded using in style 1. This format style uses a limited range huffman table. The limited means that only the central part of the pedestal subtracted data is encoded using a huffman table. Those value outside the central core are encoded in a look-aside exception list.

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

static BFU cal_ped4_style_2 ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
) [static]

Decodes the CAL when encoded using a style 2. Currently there is no style 2, so any CAL data encoded in style 2 represents a serious error.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The CAL 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 BFU cal_ped4_style_3 ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
) [static]

Decodes the CAL when encoded using a style 3. Currently there is no style 2, so any CAL data encoded in style 3 represents a serious error.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The CAL 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 QDF_calPed1Decode ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
)

Decodes the CAL when the data was acquired with zero-suppression disabled and single range readout.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The CAL 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
This routine is a simple dispatcher, extracting the formatting style, then dispatching to the appropriate decoding routine.

BFU QDF_calPed4Decode ( QDF_calCtx ctx,
QDF_calEvt evt,
const unsigned int *  src,
const unsigned int  max,
BFU  bfu 
)

Decodes the CAL when the data was acquired with zero-suppression disabled and four range readout.

Returns:
The updated bit position and current deblocked 32-bit buffer
Parameters:
ctx The compressed data decoding context
evt The CAL 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
This routine is a simple dispatcher, extracting the formatting style, then dispatching to the appropriate decoding routine.


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