GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSEC / V7-0-0 > lsec / rad750


Interface   Data Structures   File List   Data Fields   Globals  

encode.c File Reference

Encode the event against the previously populated histograms. More...

#include "compact.h"
#include "compress.ic"
#include "LSEC_p.h"
#include "LSEC/LSEC_msgs.h"
#include "EDS/EBF_cal.h"
#include "EDS/EBF_cid.h"
#include "EDS/EBF_tem.h"
#include "EDS/EBF_tkr.h"
#include "LCBD/LATP.h"
#include "PBS/WCT.h"
#include <string.h>

Functions

static __inline void setBit (unsigned int index, unsigned int *buff)
 Set a bit in an integer buffer.
static __inline void setNib (unsigned int value, unsigned int index, unsigned int *buff)
 Set a nibble in an integer buffer.
unsigned int LSEC_encode (LSEC_compaction *cpc, EBF_dir *dir)
 Encode the next event from the collection.
unsigned int LSEC_encodeAcd (LSEC_compaction *cpc, EBF_dir *dir)
 Encode the ACD event data.
unsigned int LSEC_encodeCal (LSEC_compaction *cpc, EBF_dir *dir)
 Encode the CAL portion of the event.
unsigned int LSEC_encodeTkr (LSEC_compaction *cpc, EBF_dir *dir)
 Encode the TKR portion of the event.


Detailed Description

Encode the event against the previously populated histograms.

Author:
James Swain & Owen Saxton
$Id: encode.c,v 1.13 2010/05/25 17:14:00 saxton Exp $

Function Documentation

unsigned int LSEC_encode ( LSEC_compaction cpc,
EBF_dir *  dir 
)

Encode the next event from the collection.

Parameters:
cpc Pointer to an LSEC_compaction structure
dir Pointer to the event to encode
Returns:
Size of the compressed event, or 0 if there is an error

unsigned int LSEC_encodeAcd ( LSEC_compaction cpc,
EBF_dir *  dir 
)

Encode the ACD event data.

Parameters:
cpc Compaction structure
dir Pointer to a directory of the event
Returns:
Size of the compressed event, in 32 bit words, or 0 if there is an error

unsigned int LSEC_encodeCal ( LSEC_compaction cpc,
EBF_dir *  dir 
)

Encode the CAL portion of the event.

Parameters:
cpc Compaction structure
dir Pointer to a directory of the event
Returns:
Size of the compressed event, in 32 bit words, or 0 if there is an error

unsigned int LSEC_encodeTkr ( LSEC_compaction cpc,
EBF_dir *  dir 
)

Encode the TKR portion of the event.

Parameters:
cpc Compaction structure
dir Pointer to a directory of the event
Returns:
Size of the compressed event, in 32 bit words, or 0 if there is an error

static __inline void setBit ( unsigned int  index,
unsigned int *  buff 
) [static]

Set a bit in an integer buffer.

The bits are numbered from low to high order within each integer.

Parameters:
index The index of the bit to be set.
buff Address of the integer buffer.

static __inline void setNib ( unsigned int  value,
unsigned int  index,
unsigned int *  buff 
) [static]

Set a nibble in an integer buffer.

The bits are numbered from low to high order within each integer.

Parameters:
value The nibble value to be set.
index The index of the nibble to be set.
buff Address of the integer buffer.


Generated on Wed May 26 10:22:55 2010 by  doxygen 1.5.3