GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
EMP / V1-2-0
Constituent: asc     Tag: 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 "PBI/Endianness.h"
#include "PBS/WCT.h"
#include "THS/THS.h"
#include "MSG/MSG_pubdefs.h"
#include <string.h>
Include dependency graph for EMP_hdr.c:
|
Functions |
static __inline unsigned int | bugger_ths_status (unsigned int status) |
| The status returned by THS on a host is always a failure. This function clears the status on host machines so the remaining code can go forward.
|
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.
|
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.1 2006/03/01 01:44:42 russell Exp $
Function Documentation
static __inline unsigned int bugger_ths_status |
( |
unsigned int |
status |
) |
[static] |
|
|
The status returned by THS on a host is always a failure. This function clears the status on host machines so the remaining code can go forward.
- Returns:
- The buggered status
- Parameters:
-
| status | The status to bugger |
|
void EMP_hdrClear |
( |
EMP_hdr * |
hdr |
) |
|
|
|
Clear the LSF_statsHdr structure.
- Parameters:
-
| hdr | Pointer to LSF_statsHdr structure to fill in |
|
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. |
Generated on Mon Oct 16 23:51:36 2006 by
1.4.4