GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-1 > edsd / mv2304
#include "EDS/LCBV.h"
Typedefs | |
typedef enum _EDSD_UNPACK_OBJ_K | EDSD_UNPACK_OBJ_K |
Typedef for enum _EDSD_UNPACK_OBJ_K. | |
typedef enum _EDSD_UNPACK_OBJ_V | EDSD_UNPACK_OBJ_V |
Typedef for enum _EDSD_UNPACK_OBJ_V. | |
typedef enum _EDSD_UNPACK_OBJ_M | EDSD_UNPACK_OBJ_M |
Typedef for enum _EDSD_UNPACK_OBJ_M. | |
Enumerations | |
enum | _EDSD_UNPACK_OBJ_K { EDSD_UNPACK_OBJ_K_DIR = 0, EDSD_UNPACK_OBJ_K_ACD = 1, EDSD_UNPACK_OBJ_K_TKR = 2, EDSD_UNPACK_OBJ_K_TOT = 3, EDSD_UNPACK_OBJ_K_CAL = 4, EDSD_UNPACK_OBJ_K_CNT = 5, EDSD_UNPACK_OBJ_K_EVT = 16, EDSD_UNPACK_OBJ_K_SUM = 17 } |
Enumerates what to unpack. More... | |
enum | _EDSD_UNPACK_OBJ_V { EDSD_UNPACK_OBJ_V_DIR = EDSD_UNPACK_OBJ_K_DIR, EDSD_UNPACK_OBJ_V_ACD = EDSD_UNPACK_OBJ_K_ACD, EDSD_UNPACK_OBJ_V_TKR = EDSD_UNPACK_OBJ_K_TKR, EDSD_UNPACK_OBJ_V_TOT = EDSD_UNPACK_OBJ_K_TOT, EDSD_UNPACK_OBJ_V_CAL = EDSD_UNPACK_OBJ_K_CAL, EDSD_UNPACK_OBJ_V_SUM = EDSD_UNPACK_OBJ_K_SUM, EDSD_UNPACK_OBJ_V_EVT = EDSD_UNPACK_OBJ_K_EVT } |
Enumerates the bit positions of the unpack objects. More... | |
enum | _EDSD_UNPACK_OBJ_M { EDSD_UNPACK_OBJ_M_DIR = (1<<EDSD_UNPACK_OBJ_V_DIR), EDSD_UNPACK_OBJ_M_ACD = (1<<EDSD_UNPACK_OBJ_V_ACD), EDSD_UNPACK_OBJ_M_TKR = (1<<EDSD_UNPACK_OBJ_V_TKR), EDSD_UNPACK_OBJ_M_TOT = (1<<EDSD_UNPACK_OBJ_V_TOT), EDSD_UNPACK_OBJ_M_CAL = (1<<EDSD_UNPACK_OBJ_V_CAL), EDSD_UNPACK_OBJ_M_ALL = (1<<EDSD_UNPACK_OBJ_K_CNT)-1, EDSD_UNPACK_OBJ_M_SUM = (1<<EDSD_UNPACK_OBJ_V_SUM), EDSD_UNPACK_OBJ_M_EVT = (1<<EDSD_UNPACK_OBJ_V_EVT) } |
Enumerates the bit masks of the unpack objects. More... | |
Functions | |
int | EDSD_unpackSizeof (void) |
Returns the size, in bytes, of the control structure. | |
int | EDSD_unpackConstruct (EDSD_unpackCtl *ctl, int nevts, unsigned int objects, LCBV_pktsRngFreeCb freeRtn, void *freePrm) |
Allocates and initializes the unpacking buffers. | |
unsigned int | EDSD_unpackProcess (EDSD_unpackCtl *ctl, unsigned int edw, EBF_pkt *pkt) |
Loops through the events, printing the contents to stdout. | |
void | EDSD_unpackReport (const EDSD_unpackCtl *ctl) |
The reporting function. | |
int | EDSD_unpackDestruct (EDSD_unpackCtl *ctl) |
DeAllocates and the unpacking buffers. |
CVS $Id: EDSD_unpack.h,v 1.4 2006/02/14 18:36:38 russell Exp $
enum _EDSD_UNPACK_OBJ_K |
Enumerates what to unpack.
enum _EDSD_UNPACK_OBJ_M |
Enumerates the bit masks of the unpack objects.
enum _EDSD_UNPACK_OBJ_V |
Enumerates the bit positions of the unpack objects.
int EDSD_unpackConstruct | ( | EDSD_unpackCtl * | ctl, | |
int | nevts, | |||
unsigned int | objects, | |||
LCBV_pktsRngFreeCb | freeRtn, | |||
void * | freePrm | |||
) |
Allocates and initializes the unpacking buffers.
ctl | Pointer to the control buffer | |
nevts | The number of events to process | |
objects | Which objects to unpack | |
freeRtn | Virtual packet free routine | |
freePrm | Parameter passed to the free routine, likely the LCB device handle |
int EDSD_unpackDestruct | ( | EDSD_unpackCtl * | ctl | ) |
DeAllocates and the unpacking buffers.
ctl | Pointer to the control buffer |
static unsigned int EDSD_unpackProcess | ( | EDSD_unpackCtl * | ctl, | |
unsigned int | edw, | |||
EBF_pkt * | pkt | |||
) |
Loops through the events, printing the contents to stdout.
ctl | Control structure dictating how many and what to print | |
edw | The event descriptor word | |
pkt | The packet to process |
void EDSD_unpackReport | ( | const EDSD_unpackCtl * | ctl | ) |
The reporting function.
ctl | The control parameters |
int EDSD_unpackSizeof | ( | void | ) |
Returns the size, in bytes, of the control structure.