GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-2-2 > qse / sun-gcc
#include "QSE/QSE_aemUnpack.h"
#include "QSE/QSE_aem.h"
#include "QSE/QSE_map.h"
#include "EDS/EBF_cid.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_ctb.h"
#include "PBI/Endianness.h"
Defines | |
#define | HW_ACCESS(_hwa, _idx) _hwa[_idx]; |
Addresses the ACD half-word array in a way that is compatiable with big or little endian machines. | |
#define | channel_print(_chn) |
#define | DPRINTF(format,...) |
Functions | |
int | QSE_aemUnpack (QSE_aem *aem, const EBF_dir *dir) |
Unpacks an ACD record from the AEM into a standard structure. | |
int | QSE_aemUnpackDat (QSE_aem *aem, const void *dat, unsigned int len) |
Unpacks an ACD record from the AEM into a standard structure. | |
int | QSE_aemUnpackInit (QSE_aem *aem) |
One-time initialization an QSE_aem structure. | |
void | QSE_aemUnpackReset (QSE_aem *aem) |
Resets the QSE_aem structure, preparing it for a new event. | |
unsigned int | QSE_aemUnpackSizeof (void) |
Returns the size, in bytes, of an QSE_aem structure. |
CVS $Id: QSE_aemUnpack.c,v 1.5 2008/07/17 04:20:08 russell Exp $
#define HW_ACCESS | ( | _hwa, | |||
_idx | ) | _hwa[_idx]; |
Addresses the ACD half-word array in a way that is compatiable with big or little endian machines.
_hwa | The halfword array to be accessed | |
_idx | The value to be transformed |
int QSE_aemUnpack | ( | QSE_aem * | aem, | |
const EBF_dir * | dir | |||
) |
Unpacks an ACD record from the AEM into a standard structure.
aem | Pointer to the data structure to receive the unpacked data | |
dir | The EBF directory |
int QSE_aemUnpackDat | ( | QSE_aem * | aem, | |
const void * | dat, | |||
unsigned int | len | |||
) |
Unpacks an ACD record from the AEM into a standard structure.
aem | Pointer to the data structure to receive the unpacked data | |
dat | The AEM data for this event | |
len | The length of the data in bytes |
int QSE_aemUnpackInit | ( | QSE_aem * | aem | ) |
One-time initialization an QSE_aem structure.
aem | The QSE_aem structure to initialize |
void QSE_aemUnpackReset | ( | QSE_aem * | aem | ) |
Resets the QSE_aem structure, preparing it for a new event.
aem | The QSE_ame structure to reset |
unsigned int QSE_aemUnpackSizeof | ( | void | ) |
Returns the size, in bytes, of an QSE_aem structure.
After allocating an QSE_aem structure, the structure should be initialized using QSE_aemUnpackInit().