DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
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
18
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,
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
36std::ostream&
37operator<<(std::ostream& o, DAQEthHeader const& h);
38
39} // namespace dunedaq::detdataformats
40
42
43#endif // DETDATAFORMATS_INCLUDE_DETDATAFORMATS_DAQETHHEADER_HPP_
std::ostream & operator<<(std::ostream &o, DAQEthHeader const &h)
DAQEthHeader is a versioned and unified structure for every FE electronics.