GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > XFC / V0-1-2
Constituent: xfc     Tag: linux-gcc
#include "xfc.h"
#include "xfc_sdi.h"
#include "xfc_rto_def.h"
#include "xfc_print_def.h"
#include "xfc_ebf_output.h"
#include "EFC_DB/EFC_DB_schema.h"
#include "EFC/EFC_display.h"
#include "EFC/EFS.h"
#include "EFC/EFA.h"
#include "EDS/io/EBF_stream.h"
#include "EDS/io/LCBP.h"
#include "EDS/io/EBF_evts.h"
#include "EDS/EDS_fw.h"
#include "EDS/LCBV.h"
#include "EDS/TMR.h"
#include "EFC/EFC.h"
#include "EDS/EBF_siv.h"
#include "EDS/EBF_dir.h"
#include "EDS/EDSD_print.h"
#include "EDS/FFS.h"
#include "EFC/EFC_time.h"
#include "LSE/LFR_key.h"
#include "LSE/LSE_time.h"
#include "LSE/CCSDS_ostream.h"
#include "LSEP/LSEPW.h"
#include "LSF/LSF_reason.h"
#include "LSF/LSF_ids.h"
#include "ITC/ITC_pubdefs.h"
#include "IMM/FPM_pubdefs.h"
#include "IMM/RBM_pubdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "CMX/CMX_lookupPub.h"
#include "CDM/CDM_pubdefs.h"
#include "PBS/PBS.h"
#include "PBS/MBA.h"
#include "PBS/CACHE.h"
#include "PBS/TASK.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for xfc.c:

Data Structures | |
| struct | _XfcStatsCtx |
| The statistics context. More... | |
| struct | _XfcResultsCtx |
| The filter results context. More... | |
| struct | _XfcPosterCtx |
| The posting context. More... | |
| struct | _XfcEfcCtx |
| Kludge structure to hold some of the context that gets hidden in the EFC interface. This should be replaced by query calls into EFC, but that requires a new EFC release, just not worth it at this time. More... | |
| struct | _XfcHandlerCtx |
| Description of a handler. More... | |
| struct | _XfcDisplayerCtx |
| The displayer context. More... | |
| struct | _XfcCtx |
| Structure to bind all the filtering parameters together into something suitable for passing to the LCB event call back handler. More... | |
| struct | _XfcConstructCtx |
| Special structure to fee context to the services constructor. More... | |
Defines | |
| #define | RND8(_n) (((_n) + 7) & ~0x7) |
| Rounds _n to a value of 8. | |
Typedefs | |
| typedef _XfcStatsCtx | XfcStatsCtx |
| Typedef for struct _XfcStatsCtx. | |
| typedef _XfcResultsCtx | XfcResultsCtx |
| Typedef for struct _XfcResultsCtx. | |
| typedef _XfcPosterCtx | XfcPosterCtx |
| Typedef for struct _XfcPosterCtx. | |
| typedef _XfcEfcCtx | XfcEfcCtx |
| Typedef for stuct _XfcEfcCtx. | |
| typedef _XfcHandlerCtx | XfcHandlerCtx |
| Typedef for struct _XfcHandlerCtx. | |
| typedef _XfcDisplayerCtx | XfcDisplayerCtx |
| Typedef for struct _XfcDisplayCtx. | |
| typedef _XfcCtx | XfcCtx |
| Typedef for struct _XfcCtx. | |
| typedef _XfcConstructCtx | XfcConstructCtx |
| Typedef for struct XfcConstructCtx. | |
Functions | |
| static int | setup_lcbp (LCBP lcb, EDS_fw *edsFw, int rate) |
| Does the primary setup of the LCBP. | |
| static void | xfc_run_start (XfcCtx *ctx) |
| Notifies the handlers and posters of the start run. | |
| static void | xfc_run_stop (XfcCtx *ctx) |
| Stops the run. | |
| static int | createPoster (XfcPosterCtx *poster, const char *name, unsigned int options) |
| Creates an output file if name is not NULL. | |
| static void | printPoster (XfcPosterCtx *poster, EDS_fwIxb *ixb) |
| Prints a 1 line summary of the events that are output. | |
| static void | printElapsed (const char *caption, TMR_tick beg, TMR_tick end, int n) |
| Utility routine to print elapsed times. | |
| int | xfc_initialize (void) |
| One time initialization routine. | |
| static unsigned int | xfc_time_initialize (XfcCtx *ctx, const XfcRto *rto) |
| Initializes the time base (fakes out WCT and THS). | |
| static unsigned int | xfc_edsFw_build (XfcCtx *ctx, const XfcRto *rto) |
| Allocates and constructs the EDS framework. | |
| static unsigned int | xfc_istream_build (XfcCtx *ctx, const XfcRto *rto) |
| Initializes the input data stream. | |
| static unsigned int | xfc_display_build (XfcCtx *ctx, const XfcRto *rto) |
| Initializes the event display information. | |
| static unsigned int | xfc_output_build (XfcCtx *ctx, const XfcRto *rto) |
| static unsigned int | xfc_handlers_build (XfcCtx *ctx, const XfcRto *rto) |
| void * | xfc_filterCtx_get (const XfcCtx *ctx) |
| Returns a pointer to the underlying user filter control structure. | |
| void * | xfc_resultsCtx_get (const XfcCtx *ctx) |
| Returns a pointer to the results control structure. | |
| void * | xfc_statsCtx_get (const XfcCtx *ctx) |
| Returns a pointer to the statistics control structure. | |
| int | xfc_sizeof (XfcConstructCtx *ctxx, const EFC_definition *def, const EFC_DB_Schema *schema, int stats_size) |
| Computes the size needed to hold configuration defined by the specified context, definition block and schema. | |
| const EDS_fwHandlerServicesX1 * | xfc_construct (XfcConstructCtx *ctxx, EFC *efc, unsigned int handler_id, const EFC_DB_Schema *schema, unsigned int schema_key, EDS_fw *edsFw, unsigned int objects, unsigned int needs, XfcResultsPrintRtn resultsPrint, XfcStatsClearRtn statsClear, XfcStatsAccumulateRtn statsAcc, XfcStatsPrintRtn statsPrint) |
| Constructs the configuration for the specified set of parameters. | |
| int | xfc_any_display (const XfcCtx *ctx) |
| Returns non-zero if there are any subsystems to display that need a directory. | |
| void | xfc_display (XfcCtx *ctx, unsigned int pktBytes, EBF_pkt *pkt, EBF_siv siv, EDS_fwIxb *ixb) |
| Displays the requested subsystems. | |
| int | xfc_process (int id, const XfcRto *rto, const EDS_DB_HandlerConstructServices *services) |
| Common routine to do the processing. | |
| void | xfc_results_post (XfcCtx *ctx, int reason, const void *beg, const void *end, const EFA_span *span) |
| Dummy result vector post routine. | |
| int | xfc_results_start (XfcCtx *ctx, int reason, int run_id, int startTime, int mode) |
| Handles the start run for the result analysis. | |
| void | xfc_begtick_set (XfcCtx *ctx, TMR_tick tick) |
| Seeds the beginning tick of this sample. | |
| void | xfc_endtick_set (XfcCtx *ctx, TMR_tick tick) |
| Seeds the ending tick of this sample. | |
| void | xfc_results_print (XfcCtx *ctx, const void *beg, const void *end) |
| Prints the standard part of the results, then calls the filter specific piece. | |
| unsigned int | xfc_objects_get (const XfcCtx *ctx) |
| Used to supply any additional EDS_fw objects needed by this filter context. | |
| unsigned int | xfc_needs_get (const XfcCtx *ctx) |
| Used to supply any additional EDS_fw needs for this filter context. | |
| static int | dummyStart (void *prm, unsigned int run_id, unsigned int startTime, unsigned int mode, int reason) |
| Dummy routine to intercept the posted events when one does not have a real posting routine. | |
| static void | dummyWrite (XfcPosterCtx *poster, EDS_fwIxb *ixb) |
| Dummy routine to intercept the output events when one does not have a real output routine. | |
| static int | dummyNotify (void *prm, unsigned int mode, unsigned int active, const unsigned char cfgs[32], const EDS_rsdTbl *rsdTbl) |
| Dummy routine to handle mode change notifications to the posting stream. | |
| static void | dummyFlush (void *prm, int reason) |
| Dummy routine to close an posting stream. | |
CVS $Id: xfc.c,v 1.1 2007/10/17 02:12:28 russell Exp $
|
|
Rounds _n to a value of 8.
|
|
||||||||||||||||
|
Creates an output file if name is not NULL.
|
|
||||||||||||
|
Dummy routine to close an posting stream.
|
|
||||||||||||||||||||||||
|
Dummy routine to handle mode change notifications to the posting stream.
|
|
||||||||||||||||||||||||
|
Dummy routine to intercept the posted events when one does not have a real posting routine.
|
|
||||||||||||
|
Dummy routine to intercept the output events when one does not have a real output routine.
|
|
||||||||||||||||||||
|
Utility routine to print elapsed times.
|
|
||||||||||||
|
Prints a 1 line summary of the events that are output.
|
|
||||||||||||||||
|
Does the primary setup of the LCBP.
|
|
|
Returns non-zero if there are any subsystems to display that need a directory.
|
|
||||||||||||
|
Seeds the beginning tick of this sample.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Constructs the configuration for the specified set of parameters. !!!results; |
|
||||||||||||||||||||||||
|
Displays the requested subsystems.
|
|
||||||||||||
|
Initializes the event display information.
|
|
||||||||||||
|
Allocates and constructs the EDS framework.
|
|
||||||||||||
|
Seeds the ending tick of this sample.
|
|
|
Returns a pointer to the underlying user filter control structure.
|
|
|
One time initialization routine.
|
|
||||||||||||
|
Initializes the input data stream.
|
|
|
Used to supply any additional EDS_fw needs for this filter context.
|
|
|
Used to supply any additional EDS_fw objects needed by this filter context.
|
|
||||||||||||||||
|
Common routine to do the processing.
|
|
||||||||||||||||||||||||
|
Dummy result vector post routine.
|
|
||||||||||||||||
|
Prints the standard part of the results, then calls the filter specific piece.
|
|
||||||||||||||||||||||||
|
Handles the start run for the result analysis.
|
|
|
Returns a pointer to the results control structure.
|
|
|
Notifies the handlers and posters of the start run.
|
|
|
Stops the run.
|
|
||||||||||||||||||||
|
Computes the size needed to hold configuration defined by the specified context, definition block and schema.
|
|
|
Returns a pointer to the statistics control structure.
|
|
||||||||||||
|
Initializes the time base (fakes out WCT and THS).
|
1.4.4