GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSSP / V1-1-1 > qsspprint / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QSSP_point.h File Reference

Defines a standard sample point. More...

#include <QSD/QSD_timetone.h>

Classes

struct  _QSSP_pointV0
 Version 0 of the QSSP_point structure. More...

Typedefs

typedef struct _QSSP_pointV0 QSSP_pointV0
 Typedef for _QSSP_pointV0.

Functions

unsigned long long int QSSP_pointV0TimeCompute (const QSSP_pointV0 *point)
void QSSP_pointV0Complete (QSSP_pointV0 *point)


Detailed Description

Defines a standard sample point.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QSSP_point.h,v 1.2 2011/03/29 00:14:57 russell Exp $

A sample point captures the conditions at either the beginning or ending of a sample. While, as time goes by, there may be different versions of this structure, this basic function remains the sam.e

This structure is used to uniquely identify an event in both time and sequence. As such, it contains enough information to calculate the absolute time of the event. To do this one needs the GEM clock frequency which can be got in an assumption free fashion by capturing the GEM clock value on two successive timetone/1PPS hacks. The difference in the GPS timetone messages gives one the elapsed seconds and the difference in the GEM clock register values gives how many clock ticks have passed during this period.
The event sequence number is merely the GEM sequence number extended by watching how many times this sequence counter overflows. (Overflow is defined as going from a given value to a lower value.) While this is an easy enough value to compute, the writer is encouraged to use the value from EDS_fwIxb. This will ensure agreement when readers examine data from different statistics blocks.
Note:
This structure exists so that it may passed to a convenience routine (likley within THS) for easy filling.

Generated on Wed Nov 21 21:13:00 2012 by  doxygen 1.5.8