GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / V4-5-0 > defc / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

EFA_synch.c File Reference

Implements the synchronous Event Filter Analysis routines. More...

#include <EFA_p.h>

Functions

static __inline int efa_apb_sizeof (int result_size, int result_cnt)
 Computes the size, in bytes, of the allocation and posting piece of the control structure.
static __inline void * efa_apb_construct (EFA *efa, void *mem, int result_size, int result_cnt)
void __inline efa_flush (EFA *efa, int reason)
 Analysis result vector flush routine, synchronous version.
void * EFA_alloc (EFA *efa)
 Implements the Event Filter Analysis's non-buffered/synchronous allocator.


Detailed Description

Implements the synchronous Event Filter Analysis routines.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: EFA_synch.c,v 1.3 2011/03/27 04:55:30 russell Exp $

Function Documentation

void * EFA_alloc ( EFA efa  ) 

Implements the Event Filter Analysis's non-buffered/synchronous allocator.

Returns:
The allocated buffer
Parameters:
efa The EFA control structure

References _EFA::apb, and _EFA_apb::buf.

Referenced by EFA_construct(), and efa_get_new_packet().

static __inline int efa_apb_sizeof ( int  result_size,
int  result_cnt 
) [static]

Computes the size, in bytes, of the allocation and posting piece of the control structure.

Returns:
The size, in bytes,
Parameters:
result_size The size, in bytes, of one result vector
result_cnt The number of result vectors in one packet

Referenced by EFA_sizeof().

static __inline void efa_flush ( EFA efa,
int  reason 
)

Analysis result vector flush routine, synchronous version.

Parameters:
efa The Event Filter Analysis control structure
reason The posting reason

References _EFA::beg, _EFA::ctx, _EFA::cur, _EFA_services::post, _EFA::services, and _EFA::span.

Referenced by EFA_flush().


Generated on Wed Jan 4 14:12:55 2012 by  doxygen 1.5.8