DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::detdataformats::DAQHeader Struct Reference

DAQHeader is a versioned and unified structure for every FE electronics. More...

#include <DAQHeader.hpp>

Public Types

using word_t = uint32_t

Public Member Functions

uint64_t get_timestamp () const

Public Attributes

word_t version: 6
word_t det_id: 6
word_t crate_id: 10
word_t slot_id: 4
word_t link_id: 6
word_t timestamp_1 { std::numeric_limits<word_t>::max() }
word_t timestamp_2 { std::numeric_limits<word_t>::max() }

Detailed Description

DAQHeader is a versioned and unified structure for every FE electronics.

Definition at line 22 of file DAQHeader.hpp.

Member Typedef Documentation

◆ word_t

Definition at line 24 of file DAQHeader.hpp.

Member Function Documentation

◆ get_timestamp()

uint64_t dunedaq::detdataformats::DAQHeader::get_timestamp ( ) const
inline

Definition at line 30 of file DAQHeader.hpp.

31 {
32 return static_cast<uint64_t>(timestamp_1) | (static_cast<uint64_t>(timestamp_2) << 32); // NOLINT(build/unsigned)
33 }

Member Data Documentation

◆ crate_id

word_t dunedaq::detdataformats::DAQHeader::crate_id

Definition at line 26 of file DAQHeader.hpp.

◆ det_id

word_t dunedaq::detdataformats::DAQHeader::det_id

Definition at line 26 of file DAQHeader.hpp.

◆ link_id

word_t dunedaq::detdataformats::DAQHeader::link_id

Definition at line 26 of file DAQHeader.hpp.

◆ slot_id

word_t dunedaq::detdataformats::DAQHeader::slot_id

Definition at line 26 of file DAQHeader.hpp.

◆ timestamp_1

word_t dunedaq::detdataformats::DAQHeader::timestamp_1 { std::numeric_limits<word_t>::max() }

Definition at line 27 of file DAQHeader.hpp.

27{ std::numeric_limits<word_t>::max() };

◆ timestamp_2

word_t dunedaq::detdataformats::DAQHeader::timestamp_2 { std::numeric_limits<word_t>::max() }

Definition at line 28 of file DAQHeader.hpp.

28{ std::numeric_limits<word_t>::max() };

◆ version

word_t dunedaq::detdataformats::DAQHeader::version

Definition at line 26 of file DAQHeader.hpp.


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