GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / dev > qse / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

QDF_err_def.h File Reference

Maps out the data structure used to decode and receive the decoded ERR data. More...

#include <QSE/QDF_err.h>
#include <EDS/EDR_err.h>
#include <EDS/EBF_err.h>
#include <LDT/BFP.h>
#include <dprintf.h>

Classes

struct  _QDF_errCtx
 The data used in decoding the compressed data. More...
struct  _QDF_errTemTkr
 TKR error information for TEM BUG A blocks. More...
struct  _QDF_errTemHeader
 TEM header error information. This captures the contents of the fixed sized information. More...
struct  _QDF_errTemRepackTov
 Structure to repack the error information for one TEM that has only TKR FIFO full errors. More...
struct  _QDF_errTemRepackCopy
 Structure to repack the error information for one TEM by using a simple copy. More...
struct  _QDF_errTemRepackBugA
 Structure to repack the error information for one TEM by using the decoding of the common TEM BUG A. More...
struct  _QDF_errTemRepackBugB
 Structure to repack the error information for one TEM by using the decoding of the common TEM BUG B. More...
union  _QDF_errTemRepackAll
 Acts as the storage area for all the error repacking parameters. More...
struct  _QDF_errTem
 The decoded error data for one tower. More...
struct  _QDF_errEvt
 Temporary structure to hold the ERR event as it is being decoded. More...

Typedefs

typedef struct _QDF_esbEvt QDF_esbEvt
typedef struct _QDF_exc QDF_exc
typedef struct _EBF_gem EBF_gem
typedef struct _EBF_ctb EBF_ctb
typedef struct _QDF_errCtx QDF_errCtx
 Typedef for struct _QDF_errCtx.
typedef struct _QDF_errTemTkr QDF_errTemTkr
 Typedef for struct _QDF_errTemTkr.
typedef struct _QDF_errTemHeader QDF_errTemHeader
 Typedef for struct _QDF_errTemHeader.
typedef union _QDF_errTemRepackAll QDF_errTemRepackAll
 Typedef for union _QDF_errTemRepackAll.
typedef unsigned int *(* QDF_errTemRepackRtn )(const QDF_errTemRepackAll *prm, unsigned int tag, unsigned short int *dst, const EBF_ctb *end)
typedef struct _QDF_errTemRepackTov QDF_errTemRepackTov
 Typedef for struct _QDF_errTemRepackTov.
typedef struct
_QDF_errTemRepackCopy 
QDF_errTemRepackCopy
 Typedef for struct _QDF_errTemRepackCopy.
typedef struct
_QDF_errTemRepackBugA 
QDF_errTemRepackBugA
 Typedef for struct _QDF_errTemRepackBugA.
typedef struct
_QDF_errTemRepackBugB 
QDF_errTemRepackBugB
 Typedef for struct _QDF_errTemRepackBugB.
typedef struct _QDF_errTem QDF_errTem
 Typedef for QDF_errTem.
typedef struct _QDF_errEvt QDF_errEvt

Functions

unsigned int * qdf_err_tem_repack_tov (const QDF_errTemRepackTov *err, unsigned int tag, unsigned short int *dst, const EBF_ctb *end)
 Repack TKR FIFO Overflow blocks.
unsigned int * qdf_err_tem_repack_bugA (const QDF_errTemRepackBugA *err, unsigned int tag, unsigned short int *dst, const EBF_ctb *end)
 Repacks TEM BUG A style error blocks.
unsigned int * qdf_err_tem_repack_bugB (const QDF_errTemRepackBugB *err, unsigned int tag, unsigned short int *dst, const EBF_ctb *end)
 Repacks TEM BUG B style error blocks.
unsigned int * qdf_err_tem_repack_copy (const QDF_errTemRepackCopy *err, unsigned int tag, unsigned short int *dst, const EBF_ctb *end)
 Repacks copy style error blocks.


Detailed Description

Maps out the data structure used to decode and receive the decoded ERR data.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QDF_err_def.h,v 1.4 2012/11/30 18:21:49 russell Exp $

Typedef Documentation

Typedef for struct _QDF_errTemRepackTov.

This holds the a maximally sized TOV error record. There are 8 possible GTRCs. For each GTRC there is a maximum of 7 RCs (RC=0 and 1 cannot overflow since the overflow starts at 128 and each RC can buffer 64 hits), but to avoid assumptions, the absolute maximum of 9 will be used.

1 16 bit mask of hit GTCCs

+

Each of the 8 GTCC consists of 1 16 bit value giving the number of 16-bit words in the error record 9 16-bit numbers giving the number of overflows 9 16-bit numbers giving the error code

+

1 16-bit to round to an even number of 32-bit words

This leads to an absolute maximum of 154 16-bit numbers. The observed maximum should be 1 + 8*(1 + 7 + 7) + 1 = 122 with the TKR FIFO OVERFLOW DEPTH register set to 128. This was checked to be true.


Function Documentation

unsigned int * qdf_err_tem_repack_bugA ( const QDF_errTemRepackBugA err,
unsigned int  tag,
unsigned short int *  dst,
const EBF_ctb *  end 
)

Repacks TEM BUG A style error blocks.

Returns:
The next contributor to fill in
Parameters:
err The ERR parameter and data (source)
tag The event tag
dst The destination address to fill with the error record.
end The address after the last available address

References _QDF_errTemRepackBugA::hdr, _QDF_errTemTkr::pe, _QDF_errTemHeader::phase, qdf_err_tem_repack_tkr(), _QDF_errTemHeader::summary, _QDF_errTemHeader::timeout, _QDF_errTemRepackBugA::tkr, and _QDF_errTemTkr::towd.

unsigned int * qdf_err_tem_repack_bugB ( const QDF_errTemRepackBugB err,
unsigned int  tag,
unsigned short int *  dst,
const EBF_ctb *  end 
)

Repacks TEM BUG B style error blocks.

Returns:
The next contributor to fill in
Parameters:
err The ERR parameter and data (source)
tag The event tag
dst The destination address to fill with the error record.
end The address after the last available address

References _QDF_errTemRepackBugB::hdr, _QDF_errTemHeader::phase, _QDF_errTemHeader::summary, and _QDF_errTemHeader::timeout.

unsigned int * qdf_err_tem_repack_copy ( const QDF_errTemRepackCopy err,
unsigned int  tag,
unsigned short int *  dst,
const EBF_ctb *  end 
)

Repacks copy style error blocks.

Returns:
The next contributor to fill in
Parameters:
err The ERR parameter and data (source)
tag The event tag
dst The destination address to write the error record.
end The address after the last available address

References _QDF_errTemRepackCopy::n16, _QDF_errTemRepackCopy::pos, and _QDF_errTemRepackCopy::src.

unsigned int * qdf_err_tem_repack_tov ( const QDF_errTemRepackTov err,
unsigned int  tag,
unsigned short int *  dst,
const EBF_ctb *  end 
)

Repack TKR FIFO Overflow blocks.

Returns:
The next contributor to fill in
Parameters:
[in] err The information needed to repack the TKR FIFO overflow error contribution
[in] tag The event tag (standard argument to all repack routines but, in this case, unused
[out] dst The destination address to write the error record.
[in] end The address after the last available address

References _QDF_errTemRepackTov::nidx, and _QDF_errTemRepackTov::rec.

Referenced by qdf_tov_decode().


Generated on Fri Nov 30 10:25:29 2012 by  doxygen 1.5.8