GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EDS / V2-10-0
Constituent: eds     Tag: mv2304
#include "EDS/ACD_unpack.h"
#include "EDS/ACD_rec.h"
#include "EDS/FFS.h"
#include "EDS/EDS_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 | ACD_unpack (ACD_rec *acd, const void *dat, unsigned int len) |
Unpacks an ACD record from the AEM into a standard structure. | |
int | ACD_unpackInit (ACD_rec *acd) |
One-time initialization an ACD_rec structure. | |
void | ACD_unpackReset (ACD_rec *acd) |
Resets the ACD_rec structure, preparing it for a new event. | |
unsigned int | ACD_unpackSizeof (void) |
Returns the size, in bytes, of an ACD_rec structure. |
CVS $Id: ACD_unpack.c,v 1.4 2006/04/05 20:04:05 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 ACD_unpack | ( | ACD_rec * | acd, | |
const void * | dat, | |||
unsigned int | len | |||
) |
Unpacks an ACD record from the AEM into a standard structure.
acd | Pointer to the data structure to receive the unpacked data | |
dat | The ACD data for this event | |
len | The length of the data in bytes |
int ACD_unpackInit | ( | ACD_rec * | acd | ) |
One-time initialization an ACD_rec structure.
acd | The ACD_rec structure to initialize |
void ACD_unpackReset | ( | ACD_rec * | acd | ) |
Resets the ACD_rec structure, preparing it for a new event.
acd | The ACD_rec structure to reset |
unsigned int ACD_unpackSizeof | ( | void | ) |
Returns the size, in bytes, of an ACD_rec structure.
After allocating an ACD_rec structure, the structure should be initialized using ACD_unpackInit().