GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / V4-5-0 > gfc / sun-gcc
#include <EFC/EFC_fate.h>
#include <EDS/EBF_siv.h>
Functions | |
int | GFC_sizeof (int cnt) |
Sizes the gamma filtering control structure. | |
int | GFC_cfgSizeof (void) |
Sizes the gamma filtering configuration as it is used in the actual filtering progam. | |
int | GFC_cfgCompile (GFC_cfg *cfg, const GFC_DB_V3_prms *prms) |
Implements the transformation of the configuration parameters as specified by the user, cfg, into the internal form, ctlCfg. | |
int | GFC_cfgSchemaCompile (GFC_cfg *cfg, const GFC_DB_V3_schema *schema) |
Implements the transformation of the configuration parameters as specified by the user, cfg, into the internal form, ctlCfg. | |
int | GFC_resultSizeof (const GFC *gfc) |
Returns the size, in bytes, of one result vector. | |
GFC_cfg * | GFC_cfgSet (GFC *gfc, GFC_cfg *cfg) |
Makes the specified internal representation of the configuration parameters the current active one. | |
int | GFC_filter (GFC *gfc, unsigned int pktByte, EBF_pkt *pkt, EBF_siv siv, EDS_fwIxb *ixb, unsigned int vetoes, GFC_result *result) |
Determines the fate of 1 event. | |
unsigned int | GFC_fwObjects (void) |
Returns a bit mask of the EDS_fw objects used by the gamma filter. | |
unsigned int | GFC_fwNeeds (void) |
Returns a bit mask of the EDS_fw needs. | |
const EFC_services * | GFC_servicesGet (void) |
CVS $Id: GFC.h,v 1.6 2012/01/04 20:28:08 russell Exp $
int GFC_cfgCompile | ( | GFC_cfg * | cfg, | |
const GFC_DB_V3_prms * | prms | |||
) |
Implements the transformation of the configuration parameters as specified by the user, cfg, into the internal form, ctlCfg.
0 | Successful | |
-1 | Unrecognized or non-backwardly compatiable user configuration version number. |
cfg | Filled in with the internal form of the configuration parameters | |
prms | The user form of the configuration parameters |
References compileCfgPrms(), and _GFC_cfg::prms.
Referenced by GFC_cfgSchemaCompile().
int GFC_cfgSchemaCompile | ( | GFC_cfg * | cfg, | |
const GFC_DB_V3_schema * | schema | |||
) |
Implements the transformation of the configuration parameters as specified by the user, cfg, into the internal form, ctlCfg.
0 | Successful | |
-1 | Unrecognized or non-backwardly compatiable user configuration version number. |
cfg | Filled in with the internal form of the configuration parameters | |
schema | The user form of the configuration schema |
References GFC_cfgCompile(), and _GFC_cfg::prms.
Makes the specified internal representation of the configuration parameters the current active one.
gfc | The gamma filter control structure | |
cfg | The internal representation of the configuration constants |
References _GFC::cfg.
int GFC_cfgSizeof | ( | void | ) |
Sizes the gamma filtering configuration as it is used in the actual filtering progam.
ctlCfg = malloc (GFC_cfgSizeof ()); status = GFC_cfgCompile (cfg, usrPrms); GFC_cfgSet (gfc, cfg);
int GFC_filter | ( | GFC * | gfc, | |
unsigned int | pktBytes, | |||
EBF_pkt * | pkt, | |||
EBF_siv | siv, | |||
EDS_fwIxb * | ixb, | |||
unsigned int | vetoes, | |||
GFC_result * | result | |||
) |
Determines the fate of 1 event.
< | 0, rejected | |
==0,undecided | ||
> | 0, accepted |
gfc | The gamma filter control structure | |
pktBytes | The number of bytes in pkt, includes the packet header | |
pkt | The event data packet | |
siv | The packet's state information vector | |
ixb | The information exchange block | |
vetoes | The active vetoes | |
result | The filter result vector |
References gammaFilter().
unsigned int GFC_fwNeeds | ( | void | ) |
Returns a bit mask of the EDS_fw needs.
Referenced by gfc_construct().
unsigned int GFC_fwObjects | ( | void | ) |
Returns a bit mask of the EDS_fw objects used by the gamma filter.
References EFC_EDS_FW_OBJ_M_TFC_PRJS.
Referenced by gfc_construct().
int GFC_resultSizeof | ( | const GFC * | gfc | ) |
Returns the size, in bytes, of one result vector.
The | size, in bytes, of one result vector |
gfc | The configuration control structure |
int GFC_sizeof | ( | int | cnt | ) |
Sizes the gamma filtering control structure.
cnt | Number of configurations to accommodate |