DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Data Fields
mbs::SubeventHeader Struct Reference

MBS subevent
More...

#include <mbs/MbsTypeDefs.h>

Inheritance diagram for mbs::SubeventHeader:
mbs::Header

Public Member Functions

int8_t Control () const
 
void Init (uint8_t crate=0, uint16_t procid=0, uint8_t control=0)
 
void InitFull (uint32_t fullid)
 
void PrintData (bool ashex=true, bool aslong=true)
 Prints sub-event data in hex/decimal and long/short form. More...
 
void PrintHeader ()
 Prints sub-event header. More...
 
int16_t ProcId () const
 
void * RawData () const
 
uint32_t RawDataSize () const
 
void SetRawDataSize (uint32_t sz)
 
int8_t Subcrate () const
 
- Public Member Functions inherited from mbs::Header
uint32_t FullSize () const
 
uint32_t FullType () const
 
bool isFullType (uint32_t typ) const
 
bool isTypePair (unsigned typ, unsigned subtyp) const
 
void SetFullSize (uint32_t sz)
 
void SetFullType (uint32_t typ)
 
void SetTypePair (unsigned typ, unsigned subtyp)
 
uint16_t SubType () const
 
uint16_t Type () const
 

Data Fields

union {
   struct {
      int8_t   iControl
 
      int16_t   iProcId
 
      int8_t   iSubcrate
 
   } 
 
   uint32_t   fFullId
 
}; 
 
- Data Fields inherited from mbs::Header
union {
   struct {
      uint16_t   i_subtype
 
      uint16_t   i_type
 
   } 
 
   uint32_t   iType
 
}; 
 
uint32_t iWords
 

Detailed Description

MBS subevent

Definition at line 40 of file MbsTypeDefs.h.

Member Function Documentation

◆ Init()

void mbs::SubeventHeader::Init ( uint8_t  crate = 0,
uint16_t  procid = 0,
uint8_t  control = 0 
)
inline

Definition at line 59 of file MbsTypeDefs.h.

◆ InitFull()

void mbs::SubeventHeader::InitFull ( uint32_t  fullid)
inline

Definition at line 68 of file MbsTypeDefs.h.

◆ RawData()

void* mbs::SubeventHeader::RawData ( ) const
inline

Definition at line 75 of file MbsTypeDefs.h.

◆ RawDataSize()

uint32_t mbs::SubeventHeader::RawDataSize ( ) const
inline

Definition at line 78 of file MbsTypeDefs.h.

◆ SetRawDataSize()

void mbs::SubeventHeader::SetRawDataSize ( uint32_t  sz)
inline

Definition at line 79 of file MbsTypeDefs.h.

◆ ProcId()

int16_t mbs::SubeventHeader::ProcId ( ) const
inline

Definition at line 81 of file MbsTypeDefs.h.

◆ Control()

int8_t mbs::SubeventHeader::Control ( ) const
inline

Definition at line 82 of file MbsTypeDefs.h.

◆ Subcrate()

int8_t mbs::SubeventHeader::Subcrate ( ) const
inline

Definition at line 83 of file MbsTypeDefs.h.

◆ PrintHeader()

void mbs::SubeventHeader::PrintHeader ( )

Prints sub-event header.

Definition at line 63 of file MbsTypeDefs.cxx.

◆ PrintData()

void mbs::SubeventHeader::PrintData ( bool  ashex = true,
bool  aslong = true 
)

Prints sub-event data in hex/decimal and long/short form.

Definition at line 69 of file MbsTypeDefs.cxx.

Field Documentation

◆ iProcId

int16_t mbs::SubeventHeader::iProcId

Definition at line 46 of file MbsTypeDefs.h.

◆ iSubcrate

int8_t mbs::SubeventHeader::iSubcrate

Definition at line 47 of file MbsTypeDefs.h.

◆ iControl

int8_t mbs::SubeventHeader::iControl

Definition at line 48 of file MbsTypeDefs.h.

◆ fFullId

uint32_t mbs::SubeventHeader::fFullId

Definition at line 56 of file MbsTypeDefs.h.

◆ 

union { ... }

The documentation for this struct was generated from the following files: