GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EMP / V1-4-1 > asc / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

EMP_hdr.c File Reference

Utility routines for the header common to all event-based statistics datagrams. More...

#include <EMP_hdr.h>
#include <EMP/EMP_hdrdefs.h>
#include <MSG/MSG_pubdefs.h>
#include <string.h>

Functions

static __inline unsigned int timetones_get (unsigned int cur_pps, unsigned int *cur_secs, unsigned int *cur_flags, unsigned int *prv_secs, unsigned int *prv_flags, unsigned int *prv_pps)
void EMP_timetones_get_set (EMP_timetones_get_rtn rtn)
 Routine to set the routine to get the timetone information.
void EMP_hdrClear (EMP_hdr *hdr)
 Clear the LSF_statsHdr structure.
unsigned int EMP_hdrEvtSet (EMP_hdrEvt *evt, unsigned int relative, unsigned long long seq, unsigned int gemClock, unsigned int gemStrobe)
 Sets specified event marker.

Variables

static EMP_timetones_get_rtn EmpTimeTonesGet = 0


Detailed Description

Utility routines for the header common to all event-based statistics datagrams.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: EMP_hdr.c,v 1.2 2011/03/26 20:07:42 russell Exp $

Function Documentation

void EMP_hdrClear ( EMP_hdr hdr  ) 

Clear the LSF_statsHdr structure.

Parameters:
hdr Pointer to LSF_statsHdr structure to fill in

Referenced by initMsg(), and output().

unsigned int EMP_hdrEvtSet ( EMP_hdrEvt evt,
unsigned int  relative,
unsigned long long  seq,
unsigned int  gemClock,
unsigned int  gemStrobe 
)

Sets specified event marker.

Returns:
status
Parameters:
evt Pointer to the target EMP_hdrEvt
relative The relative (to the beginning of the buffer) event number (1 = first event)
seq Extended seqence number of the event
gemClock Event clock register read from GEM contributor of event
gemStrobe Event PPS cock register read from GEM contributor of event
This is convenient routine to fill in event info that is stored in a EMP_emp structure within an LSF packet for eventual output as science data on the SSR.

References _EMP_hdrTimetones::cur, EMP__hdrEvtSeqSet(), _EMP_hdrTimetone::flags, _EMP_hdrEvt::gemClock, _EMP_hdrTimetone::gemStrobe, _EMP_hdrTimetones::prv, _EMP_hdrEvt::relative, _EMP_hdrTimetone::secs, _EMP_hdrEvt::seq, and _EMP_hdrEvt::timetones.

Referenced by AscEdsProcess().

void EMP_timetones_get_set ( EMP_timetones_get_rtn  rtn  ) 

Routine to set the routine to get the timetone information.

Parameters:
rtn The timetone get routine


Generated on Wed Nov 21 19:11:53 2012 by  doxygen 1.5.8