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

MBS buffer header. More...

#include <mbs/MbsTypeDefs.h>

Inheritance diagram for mbs::BufferHeader:
mbs::Header

Public Member Functions

uint32_t BufferLength () const
 
void Init (bool newformat)
 
bool IsCorrectEndian () const
 
void SetEndian ()
 
void SetUsedBufferSize (uint32_t len)
 
uint32_t UsedBufferSize () 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   h_begin
 
      int8_t   h_end
 
      int16_t   i_used
 
   } 
 
   int32_t   iUsed
 
}; 
 
int32_t iBufferId
 
int32_t iEndian
 
int32_t iFree3
 
int32_t iLast
 
int32_t iNanosec
 
int32_t iNumEvents
 
int32_t iSeconds
 
int32_t iTemp
 
int32_t iUsedWords
 
- 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 buffer header.

Used in LMD files, written by MBS directly. Not used in DABC

Definition at line 152 of file MbsTypeDefs.h.

Member Function Documentation

◆ Init()

void mbs::BufferHeader::Init ( bool  newformat)

Definition at line 122 of file MbsTypeDefs.cxx.

◆ BufferLength()

uint32_t mbs::BufferHeader::BufferLength ( ) const

Definition at line 138 of file MbsTypeDefs.cxx.

◆ UsedBufferSize()

uint32_t mbs::BufferHeader::UsedBufferSize ( ) const

Definition at line 152 of file MbsTypeDefs.cxx.

◆ SetUsedBufferSize()

void mbs::BufferHeader::SetUsedBufferSize ( uint32_t  len)

Definition at line 168 of file MbsTypeDefs.cxx.

◆ SetEndian()

void mbs::BufferHeader::SetEndian ( )
inline

Definition at line 187 of file MbsTypeDefs.h.

◆ IsCorrectEndian()

bool mbs::BufferHeader::IsCorrectEndian ( ) const
inline

Definition at line 188 of file MbsTypeDefs.h.

Field Documentation

◆ i_used

int16_t mbs::BufferHeader::i_used

Definition at line 156 of file MbsTypeDefs.h.

◆ h_begin

int8_t mbs::BufferHeader::h_begin

Definition at line 157 of file MbsTypeDefs.h.

◆ h_end

int8_t mbs::BufferHeader::h_end

Definition at line 158 of file MbsTypeDefs.h.

◆ iUsed

int32_t mbs::BufferHeader::iUsed

Definition at line 165 of file MbsTypeDefs.h.

◆ 

union { ... }

◆ iBufferId

int32_t mbs::BufferHeader::iBufferId

Definition at line 168 of file MbsTypeDefs.h.

◆ iNumEvents

int32_t mbs::BufferHeader::iNumEvents

Definition at line 169 of file MbsTypeDefs.h.

◆ iTemp

int32_t mbs::BufferHeader::iTemp

Definition at line 170 of file MbsTypeDefs.h.

◆ iSeconds

int32_t mbs::BufferHeader::iSeconds

Definition at line 171 of file MbsTypeDefs.h.

◆ iNanosec

int32_t mbs::BufferHeader::iNanosec

Definition at line 172 of file MbsTypeDefs.h.

◆ iEndian

int32_t mbs::BufferHeader::iEndian

Definition at line 173 of file MbsTypeDefs.h.

◆ iLast

int32_t mbs::BufferHeader::iLast

Definition at line 174 of file MbsTypeDefs.h.

◆ iUsedWords

int32_t mbs::BufferHeader::iUsedWords

Definition at line 175 of file MbsTypeDefs.h.

◆ iFree3

int32_t mbs::BufferHeader::iFree3

Definition at line 176 of file MbsTypeDefs.h.


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