GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-0 > qse / sun-gcc
#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. |
CVS $Id: QDF_cal_ped.c,v 1.4 2009/05/01 00:51:25 russell Exp $
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.
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 |
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 |
enum _CDF_CAL_PED_STYLE_K |
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.
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.
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.
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.
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.
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.
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.
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.
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.
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_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.
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 |