DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
detdataformats
include
detdataformats
DAQEthHeader.hpp
Go to the documentation of this file.
1
9
10
#ifndef DETDATAFORMATS_INCLUDE_DETDATAFORMATS_DAQETHHEADER_HPP_
11
#define DETDATAFORMATS_INCLUDE_DETDATAFORMATS_DAQETHHEADER_HPP_
12
13
#include <cstdint>
14
#include <limits>
15
#include <ostream>
16
17
namespace
dunedaq::detdataformats
{
18
22
struct
DAQEthHeader
23
{
24
using
word_t
= uint64_t;
// NOLINT(build/unsigned)
25
26
word_t
version
: 6,
det_id
: 6,
crate_id
: 10,
slot_id
: 4,
stream_id
: 8,
reserved
: 6,
seq_id
: 12,
27
block_length
: 12;
28
word_t
timestamp
{ std::numeric_limits<word_t>::max() };
29
30
uint64_t
get_timestamp
() const
// NOLINT(build/unsigned) maintain a consistent interface with DAQHeader
31
{
32
return
timestamp
;
33
}
34
};
35
36
std::ostream&
37
operator<<
(std::ostream& o, DAQEthHeader
const
& h);
38
39
}
// namespace dunedaq::detdataformats
40
41
#include "
detail/DAQEthHeader.hxx
"
42
43
#endif
// DETDATAFORMATS_INCLUDE_DETDATAFORMATS_DAQETHHEADER_HPP_
DAQEthHeader.hxx
dunedaq::detdataformats
Definition
DAQEthHeader.hpp:17
dunedaq::detdataformats::operator<<
std::ostream & operator<<(std::ostream &o, DAQEthHeader const &h)
Definition
DAQEthHeader.hxx:16
dunedaq::detdataformats::DAQEthHeader
DAQEthHeader is a versioned and unified structure for every FE electronics.
Definition
DAQEthHeader.hpp:23
dunedaq::detdataformats::DAQEthHeader::get_timestamp
uint64_t get_timestamp() const
Definition
DAQEthHeader.hpp:30
dunedaq::detdataformats::DAQEthHeader::det_id
word_t det_id
Definition
DAQEthHeader.hpp:26
dunedaq::detdataformats::DAQEthHeader::word_t
uint64_t word_t
Definition
DAQEthHeader.hpp:24
dunedaq::detdataformats::DAQEthHeader::timestamp
word_t timestamp
Definition
DAQEthHeader.hpp:28
dunedaq::detdataformats::DAQEthHeader::seq_id
word_t seq_id
Definition
DAQEthHeader.hpp:26
dunedaq::detdataformats::DAQEthHeader::version
word_t version
Definition
DAQEthHeader.hpp:26
dunedaq::detdataformats::DAQEthHeader::slot_id
word_t slot_id
Definition
DAQEthHeader.hpp:26
dunedaq::detdataformats::DAQEthHeader::reserved
word_t reserved
Definition
DAQEthHeader.hpp:26
dunedaq::detdataformats::DAQEthHeader::stream_id
word_t stream_id
Definition
DAQEthHeader.hpp:26
dunedaq::detdataformats::DAQEthHeader::crate_id
word_t crate_id
Definition
DAQEthHeader.hpp:26
dunedaq::detdataformats::DAQEthHeader::block_length
word_t block_length
Definition
DAQEthHeader.hpp:27
Generated on
for DUNE-DAQ by
1.16.1