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
8namespace pflib::packing {
9
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
44
51 bool is_ending_trailer() const;
52
56 static uint32_t ending_trailer();
57};
58
59} // namespace pflib::packing
60
61#endif
The header that is inserted by the DAQ firmware (on the Bittware) or emulated by software (on the ZCU...
Definition DAQSampleHeader.h:27
uint32_t to() const
construct a header word from our data
Definition DAQSampleHeader.cxx:15
friend std::ostream & operator<<(std::ostream &o, const DAQSampleHeader &h)
output stream operator to make logging easier
Definition DAQSampleHeader.cxx:21
void from(uint32_t word)
decode a DAQSampleHeader from the input word
Definition DAQSampleHeader.cxx:7
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
static uint32_t ending_trailer()
Construct the special trailer form of this header.
Definition DAQSampleHeader.cxx:30