GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
THS / V1-5-2
Constituent: thstest     Tag: mv2304
Interface Data Structures File List Data Fields Globals
THS_lsf.c File Reference
Convenience routines for handling LSF packets. More...
#include <string.h>
#include "PBI/Endianness.h"
#include "PBS/WCT.h"
#include "MSG/MSG_pubdefs.h"
#include "THS/THS.h"
Include dependency graph for THS_lsf.c:
|
Functions |
void | THS_lsfStatClear (LSF_statsHdr *statsHdr) |
| Clear the LSF_statsHdr structure.
|
unsigned int | THS_lsfStatFirstEvt (LSF_statsHdr *statsHdr, unsigned long long seq, unsigned int gemClock, unsigned int gemStrobe) |
| Sets first event parms within LSF_statsHdr.
|
void | THS_lsfStatIncEvt (LSF_statsHdr *statsHdr, int increment) |
| Increment event counter in LSF_statsHdr structure.
|
unsigned int | THS_lsfStatLastEvt (LSF_statsHdr *statsHdr, unsigned long long seq, unsigned int gemClock, unsigned int gemStrobe) |
| Sets last event parms within LSF_statsHdr.
|
Detailed Description
Convenience routines for handling LSF packets.
CVS $Id: THS_lsf.c,v 1.1 2006/05/12 22:42:10 apw Exp $
- Author:
- E.Bacho
A.P.Waite
Convenience routines for handling LSF packets.
Moved out of file THS_gem.c to improve packaging of constituent ths4ddt.
Function Documentation
void THS_lsfStatClear |
( |
LSF_statsHdr * |
statsHdr |
) |
|
|
|
Clear the LSF_statsHdr structure.
- Parameters:
-
| statsHdr | pointer to LSF_statsHdr structure to fill in |
- Returns:
- nothing
|
unsigned int THS_lsfStatFirstEvt |
( |
LSF_statsHdr * |
statsHdr, |
|
|
unsigned long long |
seq, |
|
|
unsigned int |
gemClock, |
|
|
unsigned int |
gemStrobe |
|
) |
|
|
|
Sets first event parms within LSF_statsHdr.
- Parameters:
-
| statsHdr | pointer to LSF_statsHdr structure to fill in |
| seq | extended seqence number of the event |
| gemClock | evt clock register read from GEM contributor of event |
| gemStrobe | evt PPS cock register read from GEM contributor of event |
- Returns:
- status
This is convenient routine to fill in event info that is stored in a LSF_statsHdr structure within an LSF packet for eventual output as science data on the SSR. |
void THS_lsfStatIncEvt |
( |
LSF_statsHdr * |
statsHdr, |
|
|
int |
increment |
|
) |
|
|
|
Increment event counter in LSF_statsHdr structure.
- Parameters:
-
| statsHdr | pointer to LSF_statsHdr structure to fill in |
| increment | number of events to increase evt count by |
- Returns:
- nothing
This is convenient routine to increment the event counter within LSF_statsHdr structure. Note that this in the number of events seen by the callback, the raw events rather than the number of prescaled events. |
unsigned int THS_lsfStatLastEvt |
( |
LSF_statsHdr * |
statsHdr, |
|
|
unsigned long long |
seq, |
|
|
unsigned int |
gemClock, |
|
|
unsigned int |
gemStrobe |
|
) |
|
|
|
Sets last event parms within LSF_statsHdr.
- Parameters:
-
| statsHdr | pointer to LSF_statsHdr structure to fill in |
| seq | extended seqence number of the event |
| gemClock | evt clock register read from GEM contributor of event |
| gemStrobe | evt PPS cock register read from GEM contributor of event |
- Returns:
- status
This is convenient routine to fill in event info that is stored in a LSF_statsHdr structure within an LSF packet for eventual output as science data on the SSR. |
Generated on Wed Feb 14 08:01:54 2007 by
1.4.4