GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PFC_DB / dev > pfc / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

PFC.c File Reference

Passthrough Filter Code. More...

#include <stdio.h>
#include <PFC_DB/PFC.h>
#include <PFC_DB/PFC_DB_schema.h>
#include <EDS_DB/EDS_DB_schema.h>
#include <EDS/EDS_fw.h>
#include <EDS/EBF_siv.h>
#include <EDS/EDS_fwServices.h>
#include <EDS/EDS_cfg.h>

Classes

struct  _PFC_Control
 Structure to hold the PFC control data. More...

Typedefs

typedef struct _EBF_pkt EBF_pkt
typedef struct _PFC_Control PFC_Control
 Typedef for struct _PFC_Control.

Functions

static unsigned int PFC_sizeOf (const void *schema, void *prm)
 Services sizeof routine.
static EDS_fwHandlerServicesX1 * PFC_construct (void *ctl, unsigned int hid, const void *schema, unsigned int schema_key, void *prm, EDS_fw *edsFw)
 Services construct routine.
static unsigned int PFC_objects (void *prm)
 Get objects routine.
static unsigned int PFC_needs (void *prm)
 Get needs routine.
static unsigned int PFC_process (void *ctl, unsigned int pktBytes, EBF_pkt *pkt, EBF_siv siv, EDS_fwIxb *ixb, int id)
 Handler process routine.
static unsigned int PFC_associate (void *ctl, unsigned int mode, unsigned int cfg)
 Associate mode routine.
static unsigned int PFC_select (void *ctl, unsigned int mode, EDS_cfgInfo *cfg)
 Select mode routine.
static unsigned int PFC_flush (void *prm, unsigned int reason)
 Handler flush routine.
static unsigned int PFC_destruct (void *prm)
 Destruction routine.
EDS_DB_HandlerConstructServices * PFC_getServices (unsigned int prm)
 Service get routine.

Variables

static
EDS_DB_HandlerConstructServices 
PFC_ConSvc
 The static instance of the PFC services structure.
static EDS_fwHandlerServicesX1 PFC_Svc
 The static instance of the PFC services structure.


Detailed Description

Passthrough Filter Code.

Author:
S.Maldonado - smaldona@slac.stanford.edu
    CVS $Id: PFC.c,v 1.8 2011/03/26 22:29:47 russell Exp $
   

Function Documentation

static unsigned int PFC_associate ( void *  ctl,
unsigned int  mode,
unsigned int  cfg 
) [static]

Associate mode routine.

Return values:
1 Failure
0 Success

Referenced by PFC_construct().

static EDS_fwHandlerServicesX1 * PFC_construct ( void *  ctl,
unsigned int  handler_id,
const void *  schema,
unsigned int  schema_key,
void *  unused,
EDS_fw *  edsFw 
) [static]

static unsigned int PFC_destruct ( void *  prm  )  [static]

Destruction routine.

Return values:
1 Failure
0 Success

Referenced by PFC_construct().

static unsigned int PFC_flush ( void *  prm,
unsigned int  reason 
) [static]

Handler flush routine.

Return values:
1 Failure
0 Success

References _PFC_Control::evt_cnt.

Referenced by PFC_construct().

EDS_DB_HandlerConstructServices * PFC_getServices ( unsigned int  prm  ) 

Service get routine.

Return values:
1 Failure
0 Success

References PFC_construct(), PFC_ConSvc, and PFC_sizeOf().

static unsigned int PFC_needs ( void *  prm  )  [static]

Get needs routine.

Return values:
1 Failure
0 Success

References _PFC_Control::needs.

Referenced by PFC_construct().

static unsigned int PFC_objects ( void *  prm  )  [static]

Get objects routine.

Return values:
1 Failure
0 Success

References _PFC_Control::objects.

Referenced by PFC_construct().

static unsigned int PFC_process ( void *  prm,
unsigned int  pktBytes,
EBF_pkt *  pkt,
EBF_siv  siv,
EDS_fwIxb *  ixb,
int  id 
) [static]

Handler process routine.

Return values:
1 Failure
0 Success

References _PFC_Control::evt_cnt, and _PFC_Control::prescale.

Referenced by PFC_construct().

static unsigned int PFC_select ( void *  prm,
unsigned int  mode,
EDS_cfgInfo *  info 
) [static]

Select mode routine.

Return values:
1 Failure
0 Success

References _PFC_Control::hid, and _PFC_Control::key.

Referenced by PFC_construct().

static unsigned int PFC_sizeOf ( const void *  schema,
void *  prm 
) [static]

Services sizeof routine.

Return values:
1 Failure
0 Success

Referenced by PFC_getServices().


Generated on Sat Mar 26 15:30:48 2011 by  doxygen 1.5.8