GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSE / V1-3-6
Constituent: lsew     Tag: linux-gcc
#include "LSF/LSF_reason.h"
#include "LSE/LSEW_dgmFw.h"
#include "LSE/LSEW_dgm.h"
#include <string.h>
Include dependency graph for LSEW_dgmFw.c:
Data Structures | |
struct | _LSEW_dgmFw |
Control structure for outputing events. More... | |
Typedefs | |
typedef _LSEW_dgmFw | LSEW_dgmFw |
Functions | |
static __inline LSEW_dgm * | locate (const LSEW_dgmFw *dgmFw) |
Give the LSEW_dgmFw, locates the LSEW_dgm. | |
static unsigned int * | datagram_open (LSEW_dgmFw *dgmFw, unsigned int reason, unsigned int evt_seq, const EBF_gem *gem) |
Opens a new event datagram. | |
static unsigned int | datagram_close (LSEW_dgmFw *dgmFw, unsigned int reason) |
Unconditionally writes out whatever is in the current buffer. | |
static unsigned int * | datagram_retry (LSEW_dgmFw *dgmFw, void *evt, unsigned int evt_seq, const EBF_gem *gem) |
Attempts to retry the adding of an event by closing the current datagram and opening a new one. If this attempt fails, it is because the datagram is not large enough to accomodate the overhead (beginning contributions) and the event. | |
unsigned int | LSEW_dgmFwSizeof (void) |
The size, in bytes, of the control structure. | |
unsigned int | LSEW_dgmFwInit (LSEW_dgmFw *dgmFw, unsigned short int apid, unsigned int dgm_id, LSF_CPU_K cpu, LSF_ORIGIN_K origin) |
Initializes the control structure. | |
LSEW_dgmFwBegAddCbp | LSEW_dgmFwBegAddSet (LSEW_dgmFw *dgmFw, LSEW_dgmFwBegAdder begRtn, void *begPrm) |
Sets the callback to add a user specified Begin Context Contribution record. | |
LSEW_dgmFwEvtAddCbp | LSEW_dgmFwEvtAddSet (LSEW_dgmFw *dgmFw, LSEW_dgmFwEvtAdder evtRtn, void *evtPrm) |
Sets the callback to add an event to the event datagram. | |
LSEW_dgmFwUsrAddCbp | LSEW_dgmFwUsrAddSet (LSEW_dgmFw *dgmFw, LSEW_dgmFwUsrAdder usrRtn, void *usrPrm) |
Sets the callback to add an event to the event datagram. | |
LSEW_dgmFwEndAddCbp | LSEW_dgmFwEndAddSet (LSEW_dgmFw *dgmFw, LSEW_dgmFwEndAdder endRtn, void *endPrm) |
Sets the callback to add a user specified End Context Contribution record. | |
LSEW_dgmFwPostCbp | LSEW_dgmFwPostSet (LSEW_dgmFw *dgmFw, LSEW_dgmFwPoster postRtn, void *postPrm) |
Sets the callback to add a user specified End Context Contribution record. | |
void | LSEW_dgmFwBufSet (LSEW_dgmFw *dgmFw, unsigned int *buf, int bufSize) |
Sets the buffer to be used for the event datagram and its size. | |
void | LSEW_dgmFwRunStart (LSEW_dgmFw *dgmFw, unsigned int runId, unsigned int startTime, LSF_MODE_K mode, LSF_REASON_OPEN_K reason) |
Sets the context for a new run. | |
void | LSEW_dgmFwModeChange (LSEW_dgmFw *dgmFw, LSF_MODE_K mode) |
Changes the current data-taking mode. | |
unsigned int | LSEW_dgmFwEvtAdd (LSEW_dgmFw *dgmFw, void *evt, unsigned int evt_seq, const EBF_gem *gem) |
Formats the specified event, flushing the current event datagram if the event datagram is full. | |
unsigned int | LSEW_dgmFwUsrAdd (LSEW_dgmFw *dgmFw, void *usrInfo, int usrLen) |
Formats the specified event, flushing the current event datagram if the event datagram is full. | |
unsigned int | LSEW_dgmFwFlush (LSEW_dgmFw *dgmFw, int reason) |
Flushes the last events out. | |
const LSEW_ctxPub * | LSEW_dgmFwCtxPub (const LSEW_dgmFw *dgmFw) |
Returns a pointer to the public portion of the standard context. | |
unsigned int | LSEW_dgmFwLeft32 (LSEW_dgmFw *dgmFw) |
Returns the number of 32 words left in the datagram. | |
Variables | |
static const unsigned char | OpenReasons [16] |
Maps a closing reason into its complimentary open reason. |
CVS $Id: LSEW_dgmFw.c,v 1.13 2008/01/31 23:31:41 russell Exp $
|
Unconditionally writes out whatever is in the current buffer.
|
|
Opens a new event datagram.
|
|
Attempts to retry the adding of an event by closing the current datagram and opening a new one. If this attempt fails, it is because the datagram is not large enough to accomodate the overhead (beginning contributions) and the event.
|
|
Give the LSEW_dgmFw, locates the LSEW_dgm.
|
|
Sets the callback to add a user specified Begin Context Contribution record.
|
|
Sets the buffer to be used for the event datagram and its size.
|
|
Returns a pointer to the public portion of the standard context.
|
|
Sets the callback to add a user specified End Context Contribution record.
|
|
Formats the specified event, flushing the current event datagram if the event datagram is full.
|
|
Sets the callback to add an event to the event datagram.
|
|
Flushes the last events out.
|
|
Initializes the control structure.
|
|
Returns the number of 32 words left in the datagram.
|
|
Changes the current data-taking mode.
|
|
Sets the callback to add a user specified End Context Contribution record.
|
|
Sets the context for a new run.
|
|
Formats the specified event, flushing the current event datagram if the event datagram is full.
|
|
Sets the callback to add an event to the event datagram.
|
|
Initial value: { LSF_REASON_OPEN_K_START, LSF_REASON_OPEN_K_START_OP, LSF_REASON_OPEN_K_AUTO_TIME, LSF_REASON_OPEN_K_AUTO_COUNT, LSF_REASON_OPEN_K_START, LSF_REASON_OPEN_K_START_OP, LSF_REASON_OPEN_K_START_AUTO, LSF_REASON_OPEN_K_START, LSF_REASON_OPEN_K_RESUME, LSF_REASON_OPEN_K_RESUME_OP, LSF_REASON_OPEN_K_RESUME_AUTO, LSF_REASON_OPEN_K_AUTO, LSF_REASON_OPEN_K_AUTO_MODE, LSF_REASON_CLOSE_K_AUTO_TIME, LSF_REASON_CLOSE_K_AUTO_COUNT, LSF_REASON_CLOSE_K_AUTO_FULL }
|