GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSSP / V1-1-0
Constituent: qssp     Tag: linux-gcc
#include "QSSP/QASC.h"
#include "QSSP/QASC_sample.h"
#include "QASC_pvtdefs.h"
#include "QSP/QFCP_cache.h"
#include "QSD/QSD_acdMap.h"
#include "QSD/QFC_member.h"
#include "QSD/QFR_file.h"
#include "EMP/ASC_ascCtb.h"
#include "EMP/ASC_ids.h"
#include "LSF/LSF_reason.h"
#include "EFC_DB/EH_ids.h"
#include "ZLIB/zlib.h"
#include "PBI/Endianness.h"
#include "PBI/Check.h"
#include "PBI/Ofs.h"
#include <string.h>
#include <stdio.h>
Include dependency graph for QASC.c:

Defines | |
| #define | NULL ((void *)0) |
| #define | RND_8(_v) ((_v + 7) & ~0x7) |
| Rounds-up an integer to the nearest multiply of 8. This is used to set allocations to quadwords. | |
Functions | |
| static QASC_STATUS | expand_raw0 (QASC_sampleV0 *qasc, const ASC_ascBdy_Raw0 *asc, unsigned int size) |
| Expand the ASC data in the raw format to QASC format. | |
| static QASC_STATUS | expand_gzip0 (QASC_sampleV0 *qasc, const ASC_ascBdy_Gzip0 *asc, unsigned int size) |
| Expand the ASC data in the raw format to QASC format. | |
| static int | do_inflate (const void *src, unsigned int srcSize, void *dst, unsigned int dstSize) |
| Decompress the source buffer to the destination buffer. | |
| static void | add_samples (QASC_sampleV0 *dst, const QASC_sampleV0 *src) |
| Adds the source sample, src, to the destination sample, dst. | |
| static __inline QFCP_cache * | qasc_file_cache_get (void) |
| Returns a pointer to the file cache. | |
| QASC * | QASC_alloc (void *must_be_null) |
| Allocates and constructs a QASC handle. | |
| QASC * | QASC_construct (QASC *qasc, void *must_be_null) |
| The constructor for a QASC control structure. | |
| void | QASC_destruct (QASC *qasc) |
| The destructor for a QASC control structure. | |
| const QASC_ctx * | QASC_ctxGet (const QASC *qasc) |
| Locates the statistics context (meta-data). | |
| int | QASC_sizeof (void *must_be_null) |
| Return the size, in bytes, of the buffer needed to handle a QASC datagram. | |
| QASC_status | QASC_expand (QASC *qasc, const LSF_contribution *ctb) |
| Routine to check integrity and swap/uncompress input data into a 2nd buffer. | |
| const LSF_contribution * | QASC_updateAtDatagram (QASC *qasc, const LSF_datagram *dgm) |
| Updates the context at datagram time. | |
| int | QASC_updateAtContribution (QASC *qasc, const LSF_contribution *ctb) |
| Updates the context at datagram time. | |
| int | QASC_updateAtRecord (QASC *qasc, const LSF_record *rec) |
| Updates the context at record time. | |
| int | QASC_idxGemGet (int group, int channel) |
| Maps an ACD GEM group and channel into a universal index. | |
| int | QASC_idxAemGet (int board, int channel) |
| Maps an ACD AEM board number and channel into a universal index. | |
| static __inline void | swap32bN (unsigned int *d32, const unsigned int *s32, int n32) |
| Swaps the specified number of 32-bit integers, presumed to be in a big endian representation to the local endianness.. This is a NOOP on big endian machines. | |
| static __inline int | inflater (const void *src, unsigned int srcSize, void *dst, unsigned int dstSize) |
| Decompress the source buffer to the destination buffe. | |
| static __inline void | pointV0_transfer (QSSP_pointV0 *dst, const EMP_hdrEvt *src) |
| Transfer an EMP_hdrEvt structure to a QSSP_point structure. | |
| static __inline void | span_transfer (QSSP_spanV1 *dst, const EMP_hdr *src) |
| Transfers the contents of an EMP_hdr structure to a QSSP_spanV1 structure. | |
| static void __inline | monitor_transfer (QASC_monitorV0 *dst, const ASC_stats *src, unsigned int nsampled) |
| Transfers the contents of an ASC_stats structure plus the number of events sampled to a QASC_monitorV0 structure. | |
CVS $Id: QASC.c,v 1.3 2008/08/25 21:47:31 russell Exp $
|
|
Rounds-up an integer to the nearest multiply of 8. This is used to set allocations to quadwords.
|
|
||||||||||||
|
Adds the source sample, src, to the destination sample, dst.
|
|
||||||||||||||||||||
|
Decompress the source buffer to the destination buffer.
|
|
||||||||||||||||
|
Expand the ASC data in the raw format to QASC format.
|
|
||||||||||||||||
|
Expand the ASC data in the raw format to QASC format.
|
|
||||||||||||||||||||
|
Decompress the source buffer to the destination buffe.
|
|
||||||||||||||||
|
Transfers the contents of an ASC_stats structure plus the number of events sampled to a QASC_monitorV0 structure.
|
|
||||||||||||
|
Transfer an EMP_hdrEvt structure to a QSSP_point structure.
|
|
|
Allocates and constructs a QASC handle.
|
|
||||||||||||
|
The constructor for a QASC control structure.
|
|
|
Locates the statistics context (meta-data).
|
|
|
The destructor for a QASC control structure.
|
|
||||||||||||
|
Routine to check integrity and swap/uncompress input data into a 2nd buffer.
This routine assumes the contributor has been byte-swapped. |
|
|
Returns a pointer to the file cache.
|
|
||||||||||||
|
Maps an ACD AEM board number and channel into a universal index.
|
|
||||||||||||
|
Maps an ACD GEM group and channel into a universal index.
|
|
|
Return the size, in bytes, of the buffer needed to handle a QASC datagram.
|
|
||||||||||||
|
Updates the context at datagram time.
|
|
||||||||||||
|
Updates the context at datagram time.
|
|
||||||||||||
|
Updates the context at record time.
|
|
||||||||||||
|
Transfers the contents of an EMP_hdr structure to a QSSP_spanV1 structure.
|
|
||||||||||||||||
|
Swaps the specified number of 32-bit integers, presumed to be in a big endian representation to the local endianness.. This is a NOOP on big endian machines.
|
1.4.4