GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSE / V2-0-2 > lsew / rad750
Functions | |
int | CDF_gemCfg_sizeof (int level) |
Returns the size, in bytes of the GEM compression configuration needed to support the specified level. | |
int | CDF_gemCfg_construct (CDF_gemCfg *cfg, int level, void **mem) |
Constructs the CDF_gemCfg compression configuration. | |
unsigned int | CDF_gemCfg_def_min_deadtime (void) |
Returns the default the minimum deadtime. | |
void | CDF_gemCfg_set_min_deadtime (CDF_gemCfg *cfg, int min_deadtime) |
Sets the minimum deadtime. | |
int | CDF_gem_sizeof (int level, const CDF_gemCfg *cfg) |
Returns the size, in bytes of the GEM compression structure needed to support the specified level. | |
int | CDF_gem_construct (CDF_gem *cdf, int level, const CDF_gemCfg *cfg, const LSEW_dgmFw *dgmFw, void **mem) |
Constructs the CDF_gem compression context. | |
void | CDF_gem_begin (CDF_gem *cdf, CDF_gemBdy *bdy) |
Fills int the GEM portion of the datagram contribution used in when decoding an GEM event. | |
void | CDF_gem_update (CDF_gem *cdf, const EBF_gem *gem, unsigned int seq) |
Updates any running context. | |
unsigned int | CDF_gem_std_compress (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int seq) |
Compresses the GEM for standard zero suppressed data. | |
unsigned int | CDF_gem_ped_compress (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int seq) |
Compresses the GEM data when zero suppression has been disabled. |
CVS $Id: CDF_gem.h,v 1.4 2009/04/30 22:41:44 russell Exp $
void CDF_gem_begin | ( | CDF_gem * | cdf, | |
CDF_gemBdy * | bdy | |||
) |
Fills int the GEM portion of the datagram contribution used in when decoding an GEM event.
cdf | The CDF_gem compress context structure | |
bdy | The CDF_gemBdy structure to fill |
int CDF_gem_construct | ( | CDF_gem * | cdf, | |
int | level, | |||
const CDF_gemCfg * | cfg, | |||
const LSEW_dgmFw * | dgmFw, | |||
void ** | mem | |||
) |
Constructs the CDF_gem compression context.
Status |
cdf | The CDF_gem compression 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_gem, else this routine will believe that the only the variable allocation of cdf needs to be allocated. |
unsigned int CDF_gem_ped_compress | ( | CDF_gem * | cdf, | |
unsigned int * | buf, | |||
unsigned int | pos, | |||
const EBF_gem * | gem, | |||
unsigned int | seq | |||
) |
Compresses the GEM data when zero suppression has been disabled.
cdf | The GEM compressed data format context | |
buf | The output buffer | |
pos | The current bit offset into the output buffer buf | |
gem | The GEM contribution | |
seq | The event sequence number |
int CDF_gem_sizeof | ( | int | level, | |
const CDF_gemCfg * | cfg | |||
) |
Returns the size, in bytes of the GEM compression structure needed to support the specified level.
level | The maximum compression level to support | |
cfg | Target specific configuration |
unsigned int CDF_gem_std_compress | ( | CDF_gem * | cdf, | |
unsigned int * | buf, | |||
unsigned int | pos, | |||
const EBF_gem * | gem, | |||
unsigned int | seq | |||
) |
Compresses the GEM for standard zero suppressed data.
cdf | The GEM's Compressed Data Format context | |
buf | The output buffer | |
pos | The current bit offset into the output buffer buf | |
gem | The GEM contribution | |
seq | The event sequence number |
void CDF_gem_update | ( | CDF_gem * | cdf, | |
const EBF_gem * | gem, | |||
unsigned int | seq | |||
) |
Updates any running context.
cdf | The GEM's Compressed Data Format context | |
gem | The GEM contribution | |
seq | The event sequence number |
int CDF_gemCfg_construct | ( | CDF_gemCfg * | cfg, | |
int | level, | |||
void ** | mem | |||
) |
Constructs the CDF_gemCfg 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_gemCfg, else this routine will believe that the only the variable allocation of cdf needs to be allocated. |
void CDF_gemCfg_set_min_deadtime | ( | CDF_gemCfg * | cfg, | |
int | min_deadtime | |||
) |
Sets the minimum deadtime.
cfg | The GEM configuration parameter block | |
min_deadtime | The minimum deadtime. For data taken off the instrument, this will be 529. Typical value for GLEAM Monte Carlo is 400 |
int CDF_gemCfg_sizeof | ( | int | level | ) |
Returns the size, in bytes of the GEM compression configuration needed to support the specified level.
level | The maximum compression level to support |