GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-6 > edsd / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

EDSD_tkr.c File Reference

EDS EBF_tkr demo and test routines, implementation. More...

#include <EDS/EDS_fw.h>
#include <EDS/EDSD_tkr.h>
#include <EDS/LCBV.h>
#include <EDS/EBF_pkt.h>
#include <EDS/EBF_siv.h>
#include <EDS/EBF_ctb.h>
#include <EDS/EBF_evt.h>
#include <EDS/EBF_dir.h>
#include <EDS/EBF_edw.h>
#include <EDS/EBF_tkr.h>
#include <EDS/EDR_tkr.h>
#include <EDS/EDR_tkrUnpack.h>
#include <EDS/EDR_tkrPrint.h>
#include <EDS/TMR.h>
#include <PBI/FFS.ih>
#include <stdio.h>
#include <stdlib.h>

Classes

struct  _EDSD_tkrCtl
 The control structure for the SIV demo/test. More...
struct  _TkrTowerCnts
 Consolidates various global statistics about a tower. More...

Typedefs

typedef struct _EDSD_tkrCtl EDSD_tkrCtl
 Typedef for struct _EDSD_tkrCtl.
typedef struct _TkrTowerCnts TkrTowerCnts
 Typedef for struct _TkrTowerCnts.

Functions

static int testEvt (EDSD_tkrCtl *ctl, EDS_fwEvt *evt)
 Tests one event.
int EDSD_tkrSizeof (void)
 Size, in bytes, of EDSD EBF_tkr control block.
unsigned int EDSD_tkrProcess (EDSD_tkrCtl *ctl, unsigned int pktBytes, EBF_pkt *pkt, EBF_siv siv, EDS_fwIxb *ixb)
 Processes the events,.
int EDSD_tkrConstruct (EDSD_tkrCtl *ctl)
 Allocates and initializes the unpacking buffers.
int EDSD_tkrReport (const EDSD_tkrCtl *ctl)
 Reporting routine.
int EDSD_tkrDestruct (EDSD_tkrCtl *ctl)
 DeAllocates and the unpacking buffers.


Detailed Description

EDS EBF_tkr demo and test routines, implementation.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: EDSD_tkr.c,v 1.7 2011/03/25 22:16:56 russell Exp $

Function Documentation

int EDSD_tkrConstruct ( EDSD_tkrCtl ctl  ) 

Allocates and initializes the unpacking buffers.

Returns:
Status
Parameters:
ctl Pointer to the control buffer

int EDSD_tkrDestruct ( EDSD_tkrCtl ctl  ) 

DeAllocates and the unpacking buffers.

Returns:
Status
Parameters:
ctl Pointer to the control buffer

unsigned int EDSD_tkrProcess ( EDSD_tkrCtl ctl,
unsigned int  pktBytes,
EBF_pkt *  pkt,
EBF_siv  siv,
EDS_fwIxb *  ixb 
)

Processes the events,.

Returns:
Disposition code
Parameters:
ctl Control structure
pktBytes The number of bytes in the packet
pkt Pointer to the event packet
siv The state information vector
ixb The information exchange block

References testEvt().

int EDSD_tkrReport ( const EDSD_tkrCtl ctl  ) 

Reporting routine.

Returns:
0, for success
Parameters:
ctl The TKR control block

int EDSD_tkrSizeof ( void   ) 

Size, in bytes, of EDSD EBF_tkr control block.

Returns:
0, for success

static int testEvt ( EDSD_tkrCtl ctl,
EDS_fwEvt *  evt 
) [static]

Tests one event.

Parameters:
ctl Control structure
evt The event structure

References _TkrTowerCnts::len, _TkrTowerCnts::nLayerEnds, and _TkrTowerCnts::nStrips.

Referenced by EDSD_tkrProcess().


Generated on Fri Dec 9 16:47:22 2011 by  doxygen 1.5.8