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


Interface   Data Structures   File List   Data Fields   Globals  

QDF_errRepack.c File Reference

Implements the ERR repacking to EBF routines. More...

#include "QSE/QDF_errRepack.h"
#include "QSE/QDF_esb.h"
#include "QDF_err_def.h"
#include "EDS/EBF_ctb.h"
#include "EDS/EBF_cid.h"
#include "PBI/Endianness.h"
#include "PBI/Unions.h"
#include <string.h>

Defines

#define TAG0   0xd
#define TAG1   0x2
#define TAG2   0x7
#define TAG3   0x8
#define TAGS   ((TAG3<<12) | (TAG2<<8) | (TAG1<<4) | TAG0)

Functions

static __inline int qdf_err_tem_repack_tkr_pe (unsigned short int *dst, int idx, unsigned int rc_template)
static __inline int qdf_err_tem_repack_tkr_towd (unsigned short int *dst, int idx)
static __inline int qdf_err_tem_repack_tkr (unsigned short int *dst, int idx, const QDF_errTemTkr *tkr, unsigned int ccMask, unsigned int tag)
 Repacks the TKR portion of the error record when it is a standard TEM A or B bug.
unsigned int * QDF_errRepack (const QDF_errEvt *err, int tem, unsigned int *dst, const EBF_ctb *end)
 Fills in the ERR contribution.
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

Implements the ERR repacking to EBF routines.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QDF_errRepack.c,v 1.1 2009/05/01 00:21:44 russell Exp $

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

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

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

static __inline int qdf_err_tem_repack_tkr ( unsigned short int *  dst,
int  idx,
const QDF_errTemTkr tkr,
unsigned int  ccMask,
unsigned int  tag 
) [static]

Repacks the TKR portion of the error record when it is a standard TEM A or B bug.

Returns:
Pointer to the next location to be filled, i.e. the location immediately after the last error word.
Parameters:
dst The destination buffer
idx The index to the next 16 bit word to fill in the destination buffer, dst.
tkr The TKR information TKR needed to fill the TKR error record.
ccMask The left justified bit mask of those TKR cables that are in error.
tag The event tag (lower 2 bits of the event sequence number).

unsigned int* QDF_errRepack ( const QDF_errEvt err,
int  tem,
unsigned int *  dst,
const EBF_ctb *  end 
)

Fills in the ERR contribution.

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


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