DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
detdataformats
include
detdataformats
HSIFrame.hpp
Go to the documentation of this file.
1
11
#ifndef DETDATAFORMATS_INCLUDE_HSIFRAME_HPP_
12
#define DETDATAFORMATS_INCLUDE_HSIFRAME_HPP_
13
14
#include <cstdint>
// For uint32_t etc
15
16
namespace
dunedaq::detdataformats
{
17
18
class
HSIFrame
19
{
20
public
:
21
// The definition of the format is in terms of 32-bit words
22
typedef
uint32_t
word_t
;
// NOLINT
23
24
word_t
version
: 6,
detector_id
: 6,
crate
: 10,
slot
: 4,
link
: 6;
25
word_t
timestamp_low
: 32;
26
word_t
timestamp_high
: 32;
27
word_t
input_low
: 32;
28
word_t
input_high
: 32;
29
word_t
trigger
: 32;
30
word_t
sequence
: 32;
31
32
uint64_t
get_timestamp
() const
// NOLINT(build/unsigned)
33
{
34
return
(uint64_t)
timestamp_low
| ((uint64_t)
timestamp_high
<< 32);
// NOLINT(build/unsigned)
35
}
36
37
void
set_timestamp
(uint64_t
ts
)
// NOLINT(build/unsigned)
38
{
39
timestamp_low
=
ts
;
40
timestamp_high
=
ts
>> 32;
41
}
42
};
43
44
}
// namespace dunedaq::detdataformats
45
46
#endif
// DETDATAFORMATS_INCLUDE_HSIFRAME_HPP_
47
48
// Local Variables:
49
// c-basic-offset: 2
50
// End:
dunedaq::detdataformats::HSIFrame
Definition
HSIFrame.hpp:19
dunedaq::detdataformats::HSIFrame::get_timestamp
uint64_t get_timestamp() const
Definition
HSIFrame.hpp:32
dunedaq::detdataformats::HSIFrame::link
word_t link
Definition
HSIFrame.hpp:24
dunedaq::detdataformats::HSIFrame::set_timestamp
void set_timestamp(uint64_t ts)
Definition
HSIFrame.hpp:37
dunedaq::detdataformats::HSIFrame::version
word_t version
Definition
HSIFrame.hpp:24
dunedaq::detdataformats::HSIFrame::sequence
word_t sequence
Definition
HSIFrame.hpp:30
dunedaq::detdataformats::HSIFrame::slot
word_t slot
Definition
HSIFrame.hpp:24
dunedaq::detdataformats::HSIFrame::timestamp_high
word_t timestamp_high
Definition
HSIFrame.hpp:26
dunedaq::detdataformats::HSIFrame::trigger
word_t trigger
Definition
HSIFrame.hpp:29
dunedaq::detdataformats::HSIFrame::detector_id
word_t detector_id
Definition
HSIFrame.hpp:24
dunedaq::detdataformats::HSIFrame::word_t
uint32_t word_t
Definition
HSIFrame.hpp:22
dunedaq::detdataformats::HSIFrame::input_high
word_t input_high
Definition
HSIFrame.hpp:28
dunedaq::detdataformats::HSIFrame::input_low
word_t input_low
Definition
HSIFrame.hpp:27
dunedaq::detdataformats::HSIFrame::crate
word_t crate
Definition
HSIFrame.hpp:24
dunedaq::detdataformats::HSIFrame::timestamp_low
word_t timestamp_low
Definition
HSIFrame.hpp:25
dunedaq::detdataformats
Definition
DAQEthHeader.hpp:16
dunedaq::ts
PDS Frame with unphysical timestamp detected with ts
Definition
DAPHNEFrameProcessor.hpp:45
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0