GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-2 > qse / sun-gcc
#include <QSE/QDF_acdRepack.h>
#include <QSE/QDF_esbRepack.h>
#include <QSE/QSE_aemRepack.h>
#include <QSE/QDF_esb.h>
#include <QDF_acd_def.h>
#include <EDS/EBF_cid.h>
#include <EDS/EDA_acd.h>
#include <PBI/FFS.ih>
#include <dprintf.h>
Classes | |
struct | _Hdr0_bf |
Maps out the fields of the first header word as bit fields. More... | |
union | _Hdr0 |
Maps out the fields as a union of a 16-bit integer and its bit field representation. More... | |
struct | _Hdr1_bf |
Maps out the fields of the second header word as bit fields. More... | |
union | _Hdr1 |
Maps out the fields as a union of a 16-bit integer and its bit field representation. More... | |
struct | _Hdr2_bf |
Maps out the fields of the third header word as bit fields. More... | |
union | _Hdr2 |
Maps out the fields as a union of a 16-bit integer and its bit field representation. More... | |
Defines | |
#define | print_channel(_ichn, _dadc, _ped, _pha) |
#define | _store(_ha, _idx, _val) |
Stores the specified value in the proper half word of a 32-bit integer, respecting the endianness of the host machine. | |
Typedefs | |
typedef struct _Hdr0_bf | Hdr0_bf |
Typedef struct _Hdr0_bf. | |
typedef union _Hdr0 | Hdr0 |
Typedef union _Hdr0. | |
typedef struct _Hdr1_bf | Hdr1_bf |
Typedef struct _Hdr1_bf. | |
typedef union _Hdr1 | Hdr1 |
Typedef struct _Hdr1. | |
typedef struct _Hdr2_bf | Hdr2_bf |
Typedef struct _Hdr2_bf. | |
typedef union _Hdr2 | Hdr2 |
Typedef struct _Hdr2. | |
Functions | |
static __inline int | acd_ped_repack (unsigned short int *dst, int left, const QDF_acdPedEvt *aem) |
Reformats the ACD pedestal event back to EBF format. | |
static __inline int | acd_ped_repack_general (unsigned short int *dst, int left, const QDF_acdPedEvt *aem) |
Reformats the ACD pedestal event back to EBF format. | |
static __inline int | acd_ped_repack_clean (unsigned short int *dst, int left, const QDF_acdPedEvt *aem) |
Reformats the ACD pedestal event back to EBF format. | |
EBF_ctb * | QDF_acdStdRepack (const QDF_acdEvt *acd, EBF_ctb *ctb, const EBF_ctb *end) |
Fills in the ACD event contribution. | |
EBF_ctb * | QDF_acdPedRepack (const QDF_acdEvt *acd, EBF_ctb *ctb, const EBF_ctb *end) |
Fills in the ACD event contribution. |
CVS $Id: QDF_acdRepack.c,v 1.5 2011/03/27 01:45:43 russell Exp $
#define _store | ( | _ha, | |||
_idx, | |||||
_val | ) |
Stores the specified value in the proper half word of a 32-bit integer, respecting the endianness of the host machine.
_ha | The half word array | |
_idx | The index | |
_val | The value to store |
Referenced by acd_ped_repack_clean(), and acd_ped_repack_general().
static __inline int acd_ped_repack | ( | unsigned short int * | dst, | |
int | left, | |||
const QDF_acdPedEvt * | aem | |||
) | [static] |
Reformats the ACD pedestal event back to EBF format.
dst | The destination pointer, i.e. where the ACD data goes | |
left | The number of bytes available in dst | |
aem | The ACD pedestal event data |
References acd_ped_repack_clean(), acd_ped_repack_general(), and _QDF_acdPedEvt::status.
Referenced by QDF_acdPedRepack().
static __inline int acd_ped_repack_clean | ( | unsigned short int * | dst, | |
int | left, | |||
const QDF_acdPedEvt * | aem | |||
) | [static] |
Reformats the ACD pedestal event back to EBF format.
dst | The destination pointer, i.e. where the ACD data goes | |
left | The number of bytes available in dst | |
aem | The ACD pedestal event data |
References _store, _Hdr2::bf, _Hdr1::bf, _Hdr0::bf, _QDF_acdPedEvt::dadcs, _QDF_acdPedEvt::peds, _Hdr2::us, _Hdr1::us, and _Hdr0::us.
Referenced by acd_ped_repack().
static __inline int acd_ped_repack_general | ( | unsigned short int * | dst, | |
int | left, | |||
const QDF_acdPedEvt * | aem | |||
) | [static] |
Reformats the ACD pedestal event back to EBF format.
dst | The destination pointer, i.e. where the ACD data goes | |
left | The number of bytes available in dst | |
aem | The ACD pedestal event data |
References _store, _Hdr1::bf, _Hdr2::bf, _Hdr0::bf, _QDF_aem_ped_lists::chnx, _QDF_acdPedEvt::dadcs, _QDF_aem_ped_phax::f, _QDF_acdPedEvt::lists, _QDF_acdPedEvt::missing, _QDF_acdPedEvt::nphaxs, _QDF_acdPedEvt::peds, _QDF_acdPedEvt::perrors, _QDF_acdPedEvt::phaxs, QDF_AEM_PED_DATA_STATUS_M_CHNX, _QDF_acdPedEvt::status, _QDF_acdPedEvt::timeout, _QDF_aem_ped_phax::ui, _Hdr0::us, _Hdr2::us, and _Hdr1::us.
Referenced by acd_ped_repack().
EBF_ctb* QDF_acdPedRepack | ( | const QDF_acdEvt * | acd, | |
EBF_ctb * | ctb, | |||
const EBF_ctb * | end | |||
) |
Fills in the ACD event contribution.
acd | The ACD event (source) | |
ctb | The EBF contributor to fill in (destination) | |
end | The address after the last available address |
References acd_ped_repack(), _QDF_acdHdrEvt::esb, _QDF_acdPedEvt::hdr, _QDF_acdEvt::ped, and QDF_esbRepack().
EBF_ctb* QDF_acdStdRepack | ( | const QDF_acdEvt * | acd, | |
EBF_ctb * | ctb, | |||
const EBF_ctb * | end | |||
) |
Fills in the ACD event contribution.
acd | The ACD event (source) | |
ctb | The EBF contributor to fill in (destination) | |
end | The address after the last available address |
References _QDF_acdStdEvt::aem, _QDF_acdHdrEvt::esb, _QDF_acdStdEvt::hdr, QDF_esbRepack(), QSE_aemRepack(), and _QDF_acdEvt::std.