GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSE / V2-0-1
Constituent: qse     Tag: linux-gcc
#include "QSD/QSD_ctx.h"
#include "QSD/QSD_timetone.h"
Include dependency graph for QSE_ctx.h:
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | _QSE_ctxCounters |
Maps out the counters. More... | |
struct | _QSE_ctxTime |
The time/clock information for the 1-second of the first event and the previous 1-second period. More... | |
struct | _QSE_ctx |
Binds together all the meta-information about an event. More... | |
Typedefs | |
typedef _QSE_ctxCounters | QSE_ctxCounters |
Typedef for struct _QSE_ctxCounters. | |
typedef _QSE_ctxTime | QSE_ctxTime |
Typedef for struct _QSE_ctxTime. | |
typedef _QSE_ctx | QSE_ctx |
Functions | |
void | QSE_ctxConstruct (QSE_ctx *ctx) |
Constructs/Initializes the public context structure. |
CVS $Id: QSE_ctx.h,v 1.12 2008/06/09 21:13:09 russell Exp $
|
Typedef for struct _QSE_ctxCounters.
If the time range proves to be inadequate, only the transport layer definition will be changed, as the presentation layer representation of 64-bits is exceeds the projected mission time (or, for that matter, the project life of the universe). If event counter range is a bit dicier, since the presentation layer only devotes 32-bits to it. This should be adequate. |
|
Typedef for struct _QSE_ctxTime.
// Get the 25 bit difference deltaTicks = (time->cur.ticks - time->prv.ticks) & 0x1fffff; // Get the elapsed time, in seconds deltaSecs = (time->cur.seconds - time->prv.seconds); // Calculate the frequency frequency = deltaTicks / deltaSecs; // Calculate the number of elapsed GEM clock ticks since // the current timetone message elapsedTicks = (time->trgticks - cur->ticks) & 0x1ffffff; // Converted the elapsed ticks to elapsed seconds elapsedSecs = elapsedTicks / frequency; // Get the absolute time time = time->cur.seconds + elapsedSecs;
|
|
Constructs/Initializes the public context structure.
|