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: 32
 
word_t timestamp_2: 32
 

Detailed Description

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

Definition at line 21 of file DAQHeader.hpp.

Member Typedef Documentation

◆ word_t

Definition at line 23 of file DAQHeader.hpp.

Member Function Documentation

◆ get_timestamp()

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

Definition at line 29 of file DAQHeader.hpp.

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

Member Data Documentation

◆ crate_id

word_t dunedaq::detdataformats::DAQHeader::crate_id

Definition at line 25 of file DAQHeader.hpp.

◆ det_id

word_t dunedaq::detdataformats::DAQHeader::det_id

Definition at line 25 of file DAQHeader.hpp.

◆ link_id

word_t dunedaq::detdataformats::DAQHeader::link_id

Definition at line 25 of file DAQHeader.hpp.

◆ slot_id

word_t dunedaq::detdataformats::DAQHeader::slot_id

Definition at line 25 of file DAQHeader.hpp.

◆ timestamp_1

word_t dunedaq::detdataformats::DAQHeader::timestamp_1

Definition at line 26 of file DAQHeader.hpp.

◆ timestamp_2

word_t dunedaq::detdataformats::DAQHeader::timestamp_2

Definition at line 27 of file DAQHeader.hpp.

◆ version

word_t dunedaq::detdataformats::DAQHeader::version

Definition at line 25 of file DAQHeader.hpp.


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