GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-5 > ebf_extract / rhel4-32
#include <EDS/EBF_pkt.h>
#include <EDS/EBF_ebw.h>
#include <EDS/EBF_esw.h>
Classes | |
struct | _EBF_ctbHdr |
Lays out the standard 2 header words of every contributor. More... | |
struct | _EBF_ctb |
Template of a contributor. More... | |
Defines | |
#define | EBF_CTB_K_ALIGN_SHIFT 4 |
The size of a contributor must be an even multiple of this power of 2. Currently an LCB packet is 128 bits or 16 bytes. This means that the low nibble of each length contributor's field must be zero. | |
#define | EBF_CTB_K_ALIGN_SIZE (1 << EBF_CTB_K_ALIGN_SHIFT) |
The size of a contributor must be an even multiple of this number. Currently an LCB packet is 128 bits or 16 bytes. This means that the low nibble of each length contributor's field must be zero. | |
#define | EBF_CTB_K_ALIGN_MASK ((1 << EBF_CTB_K_ALIGN_SIZE) - 1) |
The size of a contributor must be an even multiple of this number. Currently an LCB packet is 128 bits or 16 bytes. This means that the low nibble of each length contributor's field must be zero. | |
Typedefs | |
typedef struct _EBF_ctbHdr | EBF_ctbHdr |
Typedef for struct _EBF_ctbHdr. | |
typedef struct _EBF_ctb | EBF_ctb |
Typedef for struct _EBF_ctb. | |
Functions | |
static __inline int | EBF__ctbSize (const EBF_ctb *ctb) |
Returns the size, in bytes, of the specified contributor. | |
static __inline EBF_ctb * | EBF__ctbNext (const EBF_ctb *ctb) |
Returns a pointer to the next contributor. | |
static __inline EBF_ctb * | EBF__ctbAdvance (const EBF_ctb *ctb, int nbytes) |
Returns a pointer to the next contributor. | |
static __inline unsigned int | EBF__ctbSequence (const EBF_ctb *ctb) |
Returns the 17 bit event sequence number for this contributor. |
CVS $Id: EBF_ctb.h,v 1.4 2011/03/25 22:16:54 russell Exp $
Typedef for struct _EBF_ctb.
Returns a pointer to the next contributor.
ctb | The contributor to advance | |
nbytes | The number of bytes to advance |
Returns a pointer to the next contributor.
ctb | The base contributor |
References EBF__ctbSize().
static __inline unsigned int EBF__ctbSequence | ( | const EBF_ctb * | ctb | ) | [static] |
Returns the 17 bit event sequence number for this contributor.
ctb | Pointer to the contributor |
References EBF_ESW_SEQ, _EBF_ctbHdr::esw, _EBF_ctb::hdr, and _EBF_esw::ui.
static __inline int EBF__ctbSize | ( | const EBF_ctb * | ctb | ) | [static] |
Returns the size, in bytes, of the specified contributor.
ctb | The contributor to size |
References _EBF_ebw::bf, EBF_EBW_LEN_TO_BYTES, _EBF_ctbHdr::ebw, and _EBF_ctb::hdr.
Referenced by EBF__ctbNext().