GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GRBS / V0-1-2 > grbs_epu / rhel4-32
#include <stdio.h>
#include <string.h>
#include <MSG/MSG_pubdefs.h>
#include <GRB/GRB_epu.h>
#include <GRB/GRB_msgdef.h>
#include <GRBS_epu_p.h>
#include <GRBS_DB/GRBS_DB_epu_schema.h>
#include <GRBS_util_p.h>
#include <CDM/CDM_pubdefs.h>
#include <THS/THS.h>
#include <EDS/EDS_fw.h>
#include <EDS/EBF_gem.h>
#include <EDS/EBF_dir.h>
#include <EDS/EBF_calEnergy.h>
#include <EDS/EBF_gemLocate.h>
#include <EDS/EDR_cal.h>
#include <EDS/ECR_cal.h>
Functions | |
int | GRBS_writePhoton (void *epu_ctl, void *ixb, void *buf, int buf_size) |
Writes a photon event to a message block. | |
unsigned int | GRBS_epuSizeOf (void *prm) |
Returns the size of a algorithm control block. | |
GRB_epuServices * | GRBS_epuGetServices (void *epu_ctl, void *prm) |
Returns the EPU GRB services block. |
CVS $Id: GRBS_epu.c,v 1.6 2011/03/28 20:28:09 russell Exp $
GRB_epuServices * GRBS_epuGetServices | ( | void * | epu_ctl, | |
void * | prm | |||
) |
Returns the EPU GRB services block.
GRB | EPU services pointer |
References _GRBS_epuCtl::energy, GRBS_writePhoton(), _GRBS_epuCtl::msg_size, and _GRBS_epuCtl::services.
unsigned int GRBS_epuSizeOf | ( | void * | prm | ) |
Returns the size of a algorithm control block.
Size | in bytes of algorithm control block |
int GRBS_writePhoton | ( | void * | epu_ctl, | |
void * | ixb, | |||
void * | buf, | |||
int | buf_size | |||
) |
Writes a photon event to a message block.
0,No | bytes written | |
>0,Bytes | written | |
-1,Full |
epu_ctl | The GRBS write control block | |
ixb | The EDS information exchange block | |
buf | The GRBS message buffer | |
buf_size | The GRBS message buffer size in 32 bit words |
References _GRBS_msg::bdy, _GRBS_msgBdy::dx, _GRBS_msgBdy::dy, _GRBS_msgBdy::dz, _GRBS_msgBdy::energy, GRBS__msgCompose(), and _GRBS_epuCtl::msg_size.
Referenced by GRBS_epuGetServices().