GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-0 > qse / sun-gcc
#include "QSE/QDF_acd.h"
#include "QSE/QDF_gem.h"
#include "QSE/QDF_esb.h"
#include "QSE/QDF_exc.h"
#include "QDF_acd_def.h"
#include "QDF_exc_def.h"
#include "QSD/QSD_acdMap.h"
#include "EDS/FFS.h"
#include "LDT/BFU.h"
#include "LDT/HDD.h"
#include "dprintf.h"
#include <stdlib.h>
Defines | |
#define | NULL ((void *)(0)) |
Typedefs | |
typedef enum _PAT_V | PAT_V |
Typedef for enum _PAT_V. | |
typedef enum _PAT_M | PAT_M |
Typedef for enum _PAT_M. | |
Enumerations | |
enum | _PAT_V { PAT_V_A_ACCEPT = 0, PAT_V_B_ACCEPT = 1, PAT_V_A_HIT = 2, PAT_V_B_HIT = 3, PAT_V_VETO = 4 } |
Maps out the 5-bit pattern word, right shift. More... | |
enum | _PAT_M { PAT_M_A_ACCEPT = 1 << PAT_V_A_ACCEPT, PAT_M_B_ACCEPT = 1 << PAT_V_B_ACCEPT, PAT_M_A_HIT = 1 << PAT_V_A_HIT, PAT_M_B_HIT = 1 << PAT_V_B_HIT, PAT_M_VETO = 1 << PAT_V_VETO } |
Maps out the 5-bit pattern word, in place mask. More... | |
Functions | |
static __inline BFU | acd_std_unpack (QDF_acdCtx *ctx, QDF_acdStdEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu) |
Decodes the ACD when packed in the standard fashion. | |
static __inline BFU | acd_std_unpack_adrs (QDF_acdCtx *ctx, QDF_acdStdEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu) |
Decodes the ACD address list. | |
static __inline BFU | acd_std_unpack_pats (QDF_acdCtx *ctx, QDF_acdStdEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu) |
Decodes the ACD hit patterns. | |
static __inline BFU | acd_std_unpack_phas (QDF_acdCtx *ctx, QDF_acdStdEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu) |
Decodes the ACD pha values. | |
static __inline QSE_aem_chn | compose (unsigned int echn, unsigned int pat, unsigned int accept, unsigned int hit) |
Composes the initial AEM channel word, filling in the cable number, cable channel number, along with the accept and hit status bits. | |
static __inline void | restore (QSE_aem *aem) |
Restores the channel order of the aem, This uses qsort to do the reordering which may not be the best choice since the array of channels is almost order. | |
static int | compare (const void *p1, const void *p2) |
Callback function for qsort of the AEM channel. | |
BFU | QDF_acdStdDecode (QDF_acdCtx *ctx, QDF_acdEvt *evt, const unsigned int *src, const unsigned int max, BFU bfu) |
Decodes the ACD. |
CVS $Id: QDF_acd_std.c,v 1.4 2008/06/09 21:15:17 russell Exp $
enum _PAT_M |
enum _PAT_V |
static __inline BFU acd_std_unpack | ( | QDF_acdCtx * | ctx, | |
QDF_acdStdEvt * | evt, | |||
const unsigned int * | src, | |||
const unsigned int | max, | |||
BFU | bfu | |||
) | [static] |
Decodes the ACD when packed in the standard fashion.
ctx | 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 |
static __inline BFU acd_std_unpack_adrs | ( | QDF_acdCtx * | ctx, | |
QDF_acdStdEvt * | evt, | |||
const unsigned int * | src, | |||
const unsigned int | max, | |||
BFU | bfu | |||
) | [static] |
Decodes the ACD address list.
ctx | 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 |
static __inline BFU acd_std_unpack_pats | ( | QDF_acdCtx * | ctx, | |
QDF_acdStdEvt * | evt, | |||
const unsigned int * | src, | |||
const unsigned int | max, | |||
BFU | bfu | |||
) | [static] |
Decodes the ACD hit patterns.
ctx | 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 |
static __inline BFU acd_std_unpack_phas | ( | QDF_acdCtx * | ctx, | |
QDF_acdStdEvt * | evt, | |||
const unsigned int * | src, | |||
const unsigned int | max, | |||
BFU | bfu | |||
) | [static] |
Decodes the ACD pha values.
ctx | 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 |
static int compare | ( | const void * | p1, | |
const void * | p2 | |||
) | [static] |
Callback function for qsort of the AEM channel.
p1 | The first channel | |
p2 | The second channel |
static __inline QSE_aem_chn compose | ( | unsigned int | echn, | |
unsigned int | pat, | |||
unsigned int | accept, | |||
unsigned int | hit | |||
) | [static] |
Composes the initial AEM channel word, filling in the cable number, cable channel number, along with the accept and hit status bits.
echn | The electronics channel number, this is broken down into the cable number and channel number within the cable | |
pat | The 5-bit pattern word | |
accept | The right justified shift value for the accept status bit | |
hit | The right justified shift value for the hit status bit |
BFU QDF_acdStdDecode | ( | QDF_acdCtx * | ctx, | |
QDF_acdEvt * | evt, | |||
const unsigned int * | src, | |||
const unsigned int | max, | |||
BFU | bfu | |||
) |
Decodes the ACD.
ctx | 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 |
static __inline void restore | ( | QSE_aem * | aem | ) | [static] |
Restores the channel order of the aem, This uses qsort to do the reordering which may not be the best choice since the array of channels is almost order.
aem | The QSE_aem structure to restore |