GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EDS / V2-10-0

Constituent: eds     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

EDR_acdUnpack.c File Reference

Routines to unpack the ACD data. More...

#include "EDS/EBF_dir.h"
#include "EDS/EBF_ctb.h"
#include "EDS/EBF_cid.h"
#include "EDS/EDA_acd.h"
#include "EDS/EDR_acd.h"
#include "EDS/EDR_acdUnpack.h"
#include "EDS/FFS.h"
#include "EDS/EDS_endianness.h"
#include "EDR_acdRemap.h"
#include "ACD_mapdef.h"

Include dependency graph for EDR_acdUnpack.c:


Functions

int EDR_acdUnpack (EDR_acd *acd, const EBF_dir *dir)
 Unpacks an ACD record from the AEM into a standard structure.
int EDR_acdUnpackInit (EDR_acd *acd)
 One-time initialization an EDR_acd structure.
void EDR_acdUnpackReset (EDR_acd *acd)
 Resets the EDR_acd structure, preparing it for a new event.
unsigned int EDR_acdUnpackSizeof (void)
 Returns the size, in bytes, of an EDR_acd structure.

Detailed Description

Routines to unpack the ACD data.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: EDR_acdUnpack.c,v 1.7 2006/11/03 20:14:01 russell Exp $

Function Documentation

int EDR_acdUnpack ( EDR_acd acd,
const EBF_dir dir 
)

Unpacks an ACD record from the AEM into a standard structure.

Returns:
Status. The only failure is if more than 18 PHAs are found to be present on an given FREE board or the serial decode extends beyond the maxwrds
Parameters:
acd Pointer to the data structure to receive the unpacked data
dir The EBF directory for this event

int EDR_acdUnpackInit ( EDR_acd acd  ) 

One-time initialization an EDR_acd structure.

Returns:
0, always
Parameters:
acd The EDR_acd structure to initialize

void EDR_acdUnpackReset ( EDR_acd acd  ) 

Resets the EDR_acd structure, preparing it for a new event.

Parameters:
acd The EDR_acd structure to reset

unsigned int EDR_acdUnpackSizeof ( void   ) 

Returns the size, in bytes, of an EDR_acd structure.

Returns:
The size, in bytes, of an EDR_acd structure
This function should be called to determine the size of an EDR_acd structure. This allows the calling program to avoid including the structure definition an EDR_acd.

After allocating an EDR_acd structure, the structure should be initialized using EDR_acdUnpackInit().


Generated on Sat Jun 20 01:25:42 2009 by  doxygen 1.5.3