GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSE / V2-0-2 > lsew / sun-gcc
#include "LSE/CDF_dgn_std.h"
#include "LSE/CDF_dgn_std_tkr.h"
#include "LSE/CDF_dgn_std_cal.h"
#include "LSE/CDF_dgndef.h"
#include "CDF_err_def.h"
#include "CDF_dgn_def.h"
#include "EDS/EBF_gem.h"
#include "EDS/EDR_tkr.h"
#include "EDS/EDR_tkrUnpack.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_cid.h"
#include "EDS/FFS.h"
#include "LDT/BTE.h"
#include "LDT/BFP.h"
#include "LDT/BWP.h"
#include "LDT/BIT.h"
#include "LDT/BW.h"
#include <string.h>
#include "dprintf.h"
Functions | |
static __inline unsigned int | bte_compress32 (unsigned int *buf, unsigned int pos, unsigned int word) |
static __inline int | packBteWord (unsigned int *buf, unsigned int pos, unsigned int word) |
int | CDF_dgn_std_cfg_sizeof (int level) |
Returns the size, in bytes of the DGN compression configuration needed to support the specified level. | |
int | CDF_dgn_std_cfg_construct (CDF_dgn_std_cfg *cfg, int level, void **mem) |
Constructs the CDF_dgn_std_cfg compression configuration. | |
int | CDF_dgn_std_sizeof (int level, const CDF_dgn_std_cfg *cfg) |
Returns the size, in bytes of the DGN compression structure needed to support the specified level. | |
int | CDF_dgn_std_construct (CDF_dgn_std *cdf, int level, const CDF_dgn_std_cfg *cfg, const LSEW_dgmFw *dgmFw, void **mem) |
Constructs the CDF_dgn compression context. | |
__inline unsigned int | CDF_dgn_std_tkr_compress (CDF_dgn_std_tkr *cdf, unsigned int *buf, unsigned int pos, unsigned int const **dgns, const EBF_dir *dir, unsigned int map, unsigned int err_ids) |
unsigned int | CDF_dgn_std_compress (CDF_dgn_std *cdf, unsigned int *buf, unsigned int pos, const EBF_dir *dir, const CDF_err *err, const EDR_cal *cal, const EDR_tkr *tkr) |
Compresses the DGN contributions. |
CVS $Id: CDF_dgn_std.c,v 1.1 2009/04/30 18:21:09 russell Exp $
int CDF_dgn_std_cfg_construct | ( | CDF_dgn_std_cfg * | cfg, | |
int | level, | |||
void ** | mem | |||
) |
Constructs the CDF_dgn_std_cfg compression configuration.
Status |
cfg | Target specific configuration | |
level | The maximum compression level that needs to be supported | |
mem | Pointer to free memory pointer, return as the the updated pointer. If cfg is equal to the current contents of mem, then mem will be advanced by the size of CDF_dgnCfg else this routine will believe that the only the variable allocation of cdf needs to be allocated. |
int CDF_dgn_std_cfg_sizeof | ( | int | level | ) |
Returns the size, in bytes of the DGN compression configuration needed to support the specified level.
level | The maximum compression level to support |
unsigned int CDF_dgn_std_compress | ( | CDF_dgn_std * | cdf, | |
unsigned int * | buf, | |||
unsigned int | pos, | |||
const EBF_dir * | dir, | |||
const CDF_err * | err, | |||
const EDR_cal * | cal, | |||
const EDR_tkr * | tkr | |||
) |
Compresses the DGN contributions.
cdf | The DGN compression data formatting handle | |
buf | The output buffer | |
pos | The position of the next bit to fill | |
dir | The directory describing the event to be formatted | |
err | The processed error data, valid iff the EBF directory err_ids are non-zero. | |
cal | The unpacked CAL data | |
tkr | The unpacked TKR data |
int CDF_dgn_std_construct | ( | CDF_dgn_std * | cdf, | |
int | level, | |||
const CDF_dgn_std_cfg * | cfg, | |||
const LSEW_dgmFw * | dgmFw, | |||
void ** | mem | |||
) |
Constructs the CDF_dgn compression context.
Status |
cdf | The CDF_dgn compress context structure to fill | |
level | The maximum compression level that needs to be supported | |
cfg | Target specific configuration parameter | |
dgmFw | The datagram framework handle | |
mem | Pointer to free memory pointer, return as the the updated pointer. If cdf is equal to the current contents of mem, then mem will be advanced by the size of CDF_dgn, else this routine will believe that the only the variable allocation of cdf needs to be allocated. |
int CDF_dgn_std_sizeof | ( | int | level, | |
const CDF_dgn_std_cfg * | cfg | |||
) |
Returns the size, in bytes of the DGN compression structure needed to support the specified level.
level | The maximum compression level to support | |
cfg | Target specific configuration |