GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSEC / dev > lsec_test / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

test_compact.c File Reference

Test of the compression functionality. More...

#include <LSEC/LSEC_ctx.h>
#include <LSEC/LSEC_msgs.h>
#include <LSEC/LSEC.h>
#include <PBS/PARITY.h>
#include <evt.h>
#include <test_compact_p.h>
#include <compact.h>
#include <compress.h>
#include <MSG/MSG_pubdefs.h>
#include <PBS/BSWP.h>
#include <PBI/PARITY.ih>
#include <PBI/PTR.h>
#include <EDS/EBF_pkt.h>
#include <EDS/EBF_dir.h>
#include <EDS/EBF_siv.h>
#include <EDS/EBF_gem.h>
#include <EDS/EBF_tem.h>
#include <EDS/EBF_acd.h>
#include <EDS/EBF_cal.h>
#include <EDS/EBF_tkr.h>
#include <EDS/ACD_unpack.h>
#include <QSE/QSE_aemRepack.h>
#include <QSE/QSE_aem.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Functions

unsigned int * fillGem (unsigned int *evt)
 Generate the GEM data for an event.
unsigned int * fillAem (unsigned int *evt)
 Generate the AEM data for an event.
unsigned int * fillTem (unsigned int *evt)
 Generate the TEM data for an event.
int test_compact (void *param)
 Test the compression functionality.


Detailed Description

Test of the compression functionality.

Author:
James Swain -- jswain@slac.stanford.edu
$Id: test_compact.c,v 1.9 2011/03/27 17:37:54 saxton Exp $

Function Documentation

unsigned int * fillAem ( unsigned int *  evt  ) 

Generate the AEM data for an event.

Parameters:
evt Pointer to the event to fill
Returns:
Pointer to the end of the space occupied by this contribution

Referenced by test_compact().

unsigned int * fillGem ( unsigned int *  evt  ) 

Generate the GEM data for an event.

Parameters:
evt Pointer to the event to fill.
Returns:
Pointer to the end of the space occupied by this contribution

Referenced by test_compact().

unsigned int * fillTem ( unsigned int *  evt  ) 

Generate the TEM data for an event.

Parameters:
evt Pointer to the event to fill

References LSEC_N_CAL_LAY, LSEC_N_LAYCNT_B, LSEC_N_TKR_CC, and LSEC_N_TWR.

Referenced by test_compact().

int test_compact ( void *  param  ) 

Test the compression functionality.

Parameters:
param Control structure
Returns:
Line number of the first failure, or 0 on success

References fillAem(), fillGem(), fillTem(), LSEC_evtNew(), and LSEC_N_TIMES.

Referenced by LSEC_test().


Generated on Mon Mar 28 10:56:43 2011 by  doxygen 1.5.8