GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSE / V1-3-6
Constituent: lsew     Tag: sun-gcc
#include "dprintf.h"
#include "LSEW_ctx.h"
#include "LSE_time.ih"
#include "LSE/LSE_etxCtb.h"
#include "LSE/LSE_timCtb.h"
#include "EDS/EBF_gem.h"
#include "EDS/EBF_evt.h"
#include <string.h>
Include dependency graph for LSEW_ctx.c:
Functions | |
static __inline unsigned int * | add_tim (unsigned int *cur, unsigned int len32, unsigned int full_id, unsigned int abrv_id, unsigned int prv_pps, unsigned int prv_secs, unsigned int cur_pps, unsigned int cur_secs, unsigned int cur_flags, unsigned int force) |
Add either a full or abbreviated Time Specification Contribution. | |
static __inline void | fill_and_update_did (LSE_did *dst, LSE_did *src) |
Completes the Datagram Identification portion of the contribution. | |
static __inline unsigned int * | complete_etxFull (LSE_etxCtbFull *etx, unsigned int id, unsigned int bridge, unsigned int prv_secs, unsigned int prv_flags, unsigned int prv_pps, unsigned int cur_secs, unsigned int cur_flags, unsigned int cur_pps) |
Completes a LSE_etxCtbFull contribution. | |
static __inline unsigned int * | complete_etxAbbreviated (LSE_etxCtbAbbreviated *etx, unsigned int id, unsigned int bridge, unsigned int cur_secs, unsigned int prv_pps, unsigned int cur_pps) |
Completes a LSE_etxCtbAbbreviated contribution. | |
static __inline void | update_counter (unsigned short int *ext, unsigned int *base, unsigned int evt_counter) |
Updates the extended and base values of one counter. | |
static __inline void | update_xcr (LSEW_ctxGem *ctx, unsigned int sequence, const EBF_gem *gem) |
Updates the extended range counter information. | |
static __inline void | copy_xcr (LSE_xcr *dst, LSE_xcr *src) |
Copies the extended range counters. | |
static __inline unsigned int * | complete_etx (LSEW_ctx *ctx, LSE_etxCtb *etx, unsigned int reason, unsigned int gem_pps) |
Completes the event context portion of the event datagram by filling in the bridge word and time information. | |
static __inline unsigned int * | ctx_update (LSEW_ctx *ctx, unsigned int *cur, unsigned int len32, unsigned int gem_pps) |
Updates the time contribution. | |
void | LSEW_ctxInit (LSEW_ctx *ctx, LSF_CPU_K cpu, LSF_ORIGIN_K origin) |
!!! KLUDGE - None of the stuff following belongs here (except the INIT) | |
unsigned int * | LSEW_ctxOpenAdd (LSEW_ctx *ctx, unsigned int *cur, unsigned int len32, unsigned int reason, unsigned int sequence, const EBF_gem *gem) |
Updates the Time/Counter context structure and inserts the the start of the appropriate (full or abbreviated) LSE_etxCtb contribution into the event datagram. | |
void | LSEW_ctxRunStart (LSEW_ctx *ctx, unsigned int runId, unsigned int startTime, LSF_MODE_K mode) |
Sets the context for a new run. | |
void | LSEW_ctxModeChange (LSEW_ctx *ctx, LSF_MODE_K mode) |
Changes the current data-taking mode. | |
unsigned int * | LSEW_ctxUpdateAdd (LSEW_ctx *ctx, unsigned int *cur, unsigned int len32, unsigned int sequence, const EBF_gem *gem) |
Updates the Time/Counter context structure and inserts an Time contribution in the data stream if necessary. | |
unsigned int * | LSEW_ctxCloseAdd (LSEW_ctx *ctx, unsigned int *cur, unsigned int len32, unsigned int reason) |
Called when an event datagram is filled, it completes the opening LSE_etxCtb contribution by filling in the bridge field from the specified context. |
CVS $Id: LSEW_ctx.c,v 1.19 2008/01/31 23:31:35 russell Exp $
|
Add either a full or abbreviated Time Specification Contribution.
|
|
Completes the event context portion of the event datagram by filling in the bridge word and time information.
|
|
Completes a LSE_etxCtbAbbreviated contribution.
|
|
Completes a LSE_etxCtbFull contribution.
|
|
Copies the extended range counters.
|
|
Updates the time contribution.
|
|
Completes the Datagram Identification portion of the contribution.
|
|
Called when an event datagram is filled, it completes the opening LSE_etxCtb contribution by filling in the bridge field from the specified context.
|
|
!!! KLUDGE - None of the stuff following belongs here (except the INIT)
|
|
Changes the current data-taking mode.
|
|
Updates the Time/Counter context structure and inserts the the start of the appropriate (full or abbreviated) LSE_etxCtb contribution into the event datagram.
|
|
Sets the context for a new run.
|
|
Updates the Time/Counter context structure and inserts an Time contribution in the data stream if necessary.
|
|
Updates the extended and base values of one counter.
|
|
Updates the extended range counter information.
|