DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
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
17
19{
20public:
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;
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 {
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:
void set_timestamp(uint64_t ts)
Definition HSIFrame.hpp:37
PDS Frame with unphysical timestamp detected with ts