pflib
v3.9.5-8-gf71a60f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
DAQSampleHeader.h
1
#pragma once
2
#ifndef PFLIB_PACKING_DAQSAMPLEHEADER
3
#define PFLIB_PACKING_DAQSAMPLEHEADER
4
5
#include <cstdint>
6
#include <ostream>
7
8
namespace
pflib::packing {
9
27
struct
DAQSampleHeader
{
28
uint32_t version{0};
29
uint32_t econd_id{0};
30
uint32_t i_l1a{0};
31
bool
is_soi{
false
};
32
uint32_t econd_len{0};
33
35
void
from
(uint32_t word);
36
38
uint32_t
to
()
const
;
39
43
friend
std::ostream
&
operator<<
(
std::ostream
& o,
const
DAQSampleHeader
& h);
44
51
bool
is_ending_trailer
()
const
;
52
56
static
uint32_t
ending_trailer
();
57
};
58
59
}
// namespace pflib::packing
60
61
#endif
std::ostream
pflib::packing::DAQSampleHeader
The header that is inserted by the DAQ firmware (on the Bittware) or emulated by software (on the ZCU...
Definition
DAQSampleHeader.h:27
pflib::packing::DAQSampleHeader::to
uint32_t to() const
construct a header word from our data
Definition
DAQSampleHeader.cxx:15
pflib::packing::DAQSampleHeader::operator<<
friend std::ostream & operator<<(std::ostream &o, const DAQSampleHeader &h)
output stream operator to make logging easier
Definition
DAQSampleHeader.cxx:21
pflib::packing::DAQSampleHeader::from
void from(uint32_t word)
decode a DAQSampleHeader from the input word
Definition
DAQSampleHeader.cxx:7
pflib::packing::DAQSampleHeader::is_ending_trailer
bool is_ending_trailer() const
A special form of this DAQ header is used to signal the end of a multi-sample sequence.
Definition
DAQSampleHeader.cxx:39
pflib::packing::DAQSampleHeader::ending_trailer
static uint32_t ending_trailer()
Construct the special trailer form of this header.
Definition
DAQSampleHeader.cxx:30
include
pflib
packing
DAQSampleHeader.h
Generated by
1.12.0