GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSEC / V6-0-0
Constituent: lsec     Tag: linux-gcc
#include "LSEC/LSEC_msgs.h"
#include "LSEC/LSEC_ctx.h"
#include "compact_p.h"
#include "encode.h"
#include "compress.ic"
#include "acdraw.h"
#include "gemraw.h"
#include "LDT/APE.h"
#include "LDT/APD.h"
#include "EDS/EBF_siv.h"
#include "EDS/EBF_cid.h"
#include "EDS/EBF_cal.h"
#include "EDS/FFS.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/WCT.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
Include dependency graph for compact.c:
Defines | |
#define | _printf(msg, format, args...) |
Provide printf-like functionality using MSG information message. | |
#define | CHECK_CALL(FUNC) |
Call a function and check the return value. | |
Enumerations | |
enum | { PRINTSIZE = 256 } |
Functions | |
LSEC_compaction * | LSEC_newCompaction (unsigned cap) |
Allocate memory for an LSEC_compaction structure and all the substructures. | |
void | LSEC_deleteCompaction (LSEC_compaction *cpc) |
Free memory previously allocated with a call to LSEC_newCompaction. | |
void | LSEC_clearCompaction (LSEC_compaction *cpc) |
Clear away any context from a previous cycle. | |
void | LSEC_reportCompaction (LSEC_compaction *cpc, FILE *fp) |
Write formatted ASCII output to a file. | |
void | LSEC_setMode (LSEC_compaction *cpc, unsigned mode) |
Set the calibration mode. | |
void | LSEC_setFourRange (LSEC_compaction *cpc, unsigned range) |
Set the four-range value. | |
unsigned | LSEC_checkCompaction (LSEC_compaction *cpc) |
Check the substructures for errors. | |
unsigned | LSEC_monitorCompaction (LSEC_compaction *cpc, unsigned mon) |
Set the monitoring level for the compaction. | |
unsigned int | sizeofUserGem (LSEC_compaction *cpc) |
Calculate the number of 32-bit words required to hold the tables against which the GEM contributions will be encoded. | |
static unsigned int | sizeofUserAcd (LSEC_compaction *cpc) |
Calculate the number of 32-bit words required to hold the tables against which the ACD contributions will be encoded. | |
static unsigned int | sizeofUserCal (LSEC_compaction *cpc) |
Calculate the number of 32-bit words required to hold the tables against which the CAL contributions will be encoded. | |
static unsigned int | sizeofUserTkr (LSEC_compaction *cpc) |
Calculate the number of 32-bit words required to hold the tables against which the TKR contributions will be encoded. | |
unsigned int * | consignUserGem (LSEC_compaction *cpc, unsigned int *buf) |
Pack the tables against which the GEM contributions will be encoded into the buffer. | |
static unsigned int * | consignUserAcd (LSEC_compaction *cpc, unsigned int *buf) |
Pack the tables against which the ACD contributions will be encoded into the buffer. | |
static unsigned int * | consignUserCal (LSEC_compaction *cpc, unsigned int *buf) |
Pack the tables against which the CAL contributions will be encoded into the buffer. | |
static unsigned int * | consignUserTkr (LSEC_compaction *cpc, unsigned int *buf) |
Pack the tables against which the TKR contributions will be encoded into the buffer. | |
unsigned | processGem (LSEC_compaction *cpc) |
Process the GEM compression structure. | |
unsigned | LSEC_processAcd (LSEC_compaction *cpc) |
Process ACD compaction data. | |
void | LSEC_calculateCalMeans (LSEC_compaction *cpc) |
Calculate the mean value for each CAL log end. | |
unsigned | LSEC_processCalMeans (LSEC_compaction *cpc) |
Process the mean values for each CAL log end. | |
unsigned | LSEC_processCal (LSEC_compaction *cpc) |
Process the CAL compression structures. | |
unsigned | LSEC_processTkr (LSEC_compaction *cpc) |
Process the TKR compression structures. | |
unsigned | LSEC_encode (LSEC_compaction *cpc, EBF_dir *dir) |
Encode the next event from the collection. | |
unsigned int * | LSEC_consignEvt (LSEC_compaction *cpc, unsigned int *buf) |
Copy a single encoded event into the datagram. | |
unsigned | LSEC_sizeofUser32 (LSEC_compaction *cpc) |
Calculate the number of 32-bit words required to hold tables against which the events will be encoded. | |
unsigned int * | LSEC_consignUser (LSEC_compaction *cpc, unsigned int *buf) |
Pack the tables against which the events will be encoded into the buffer. |
|
Value: { \
char buffer[PRINTSIZE];\
sprintf(buffer, format, ## args); \
_msg_report(msg, 0, 1, buffer); \
}
|
|
Value: { \ unsigned status = FUNC;\ if (_msg_failure(status)) return status;\ }
|
|
Pack the tables against which the ACD contributions will be encoded into the buffer.
|
|
Pack the tables against which the CAL contributions will be encoded into the buffer.
|
|
Pack the tables against which the GEM contributions will be encoded into the buffer.
|
|
Pack the tables against which the TKR contributions will be encoded into the buffer.
|
|
Calculate the mean value for each CAL log end.
|
|
Check the substructures for errors.
|
|
Clear away any context from a previous cycle.
|
|
Copy a single encoded event into the datagram.
|
|
Pack the tables against which the events will be encoded into the buffer.
|
|
Free memory previously allocated with a call to LSEC_newCompaction.
|
|
Encode the next event from the collection.
|
|
Set the monitoring level for the compaction.
|
|
Allocate memory for an LSEC_compaction structure and all the substructures.
|
|
Process ACD compaction data.
|
|
Process the CAL compression structures.
|
|
Process the mean values for each CAL log end.
|
|
Process the TKR compression structures.
|
|
Write formatted ASCII output to a file.
|
|
Set the four-range value.
|
|
Set the calibration mode.
|
|
Calculate the number of 32-bit words required to hold tables against which the events will be encoded.
|
|
Process the GEM compression structure.
|
|
Calculate the number of 32-bit words required to hold the tables against which the ACD contributions will be encoded.
|
|
Calculate the number of 32-bit words required to hold the tables against which the CAL contributions will be encoded.
|
|
Calculate the number of 32-bit words required to hold the tables against which the GEM contributions will be encoded.
|
|
Calculate the number of 32-bit words required to hold the tables against which the TKR contributions will be encoded.
|