GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-12-1 > ebf_unpacktest / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

EBF_evt.ih File Reference

Defines the inlines associated with the event header. More...

#include <EDS/EBF_evt.h>
#include <EDS/EBF_pkt.h>
#include <EDS/EBF_ctb.h>
#include <EDS/EBF_edw.h>

Functions

static __inline int EBF__evtSize (const EBF_evt *evt)
 Returns the size in bytes, of the specified event.
static __inline EBF_evtEBF__evtNext (const EBF_evt *evt)
 Returns a pointer to the next event.


Detailed Description

Defines the inlines associated with the event header.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: EBF_evt.ih,v 1.3 2011/03/25 22:16:55 russell Exp $

The inlines defined in this file reference the LCBD private data. They are meant to be used only went writing IO for EBF streams. They must not be used in general purpose code since they depend on knowledge about the driver.

Function Documentation

static __inline EBF_evt * EBF__evtNext ( const EBF_evt evt  )  [static]

Returns a pointer to the next event.

Returns:
Pointer to the next event
Parameters:
evt Pointer to the current event
Note:
Note that this routine makes no guarantee that there is a next event. It merely advances the pointer to one past the end of the base event.
Warning:
One should use this function with caution. In the case of multi-packet events, no integrity checking is done on the packets. The routine simply keeps adding up the size of each packet while the receive status is PACKET_TRUNCATED. It is really meant to be used with a prepared set of data (e.g. from GLEAM, but not directly from the Event Builder Module via the LCB) were integrity is not an issue

References EBF__evtSize().

static __inline int EBF__evtSize ( const EBF_evt evt  )  [static]

Returns the size in bytes, of the specified event.

Returns:
The size in bytes, of the specified event
Parameters:
evt The event to size
Note:
This is the size of the data portion of the event. It includes the the fixed header size.
Warning:
One should use this function with caution. In the case of multi-packet events, no integrity checking is done on the packets. The routine simply keeps adding up the size of each packet while the receive status is PACKET_TRUNCATED. It is really meant to be used with a prepared set of data (e.g. from GLEAM, but not directly from the Event Builder Module via the LCB) were integrity is not an issue

References _EBF_edw::bf, EBF_EDW_LEN_TO_BYTES, EBF_EDW_RSTATUS_K_PACKET_TRUNCATED, _EBF_evt::hdr, _EBF_edw_bf::len, _EBF_edw_bf::rstatus, _EBF_edw::ui, and _EBF_pktHdr::undef.

Referenced by EBF__evtNext().


Generated on Thu Sep 27 13:55:29 2012 by  doxygen 1.5.8