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

#include <HSIFrame.hpp>

Public Types

typedef uint32_t word_t
 

Public Member Functions

uint64_t get_timestamp () const
 
void set_timestamp (uint64_t ts)
 

Public Attributes

word_t version: 6
 
word_t detector_id: 6
 
word_t crate: 10
 
word_t slot: 4
 
word_t link: 6
 
word_t timestamp_low: 32
 
word_t timestamp_high: 32
 
word_t input_low: 32
 
word_t input_high: 32
 
word_t trigger: 32
 
word_t sequence: 32
 

Detailed Description

Definition at line 18 of file HSIFrame.hpp.

Member Typedef Documentation

◆ word_t

Definition at line 22 of file HSIFrame.hpp.

Member Function Documentation

◆ get_timestamp()

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

Definition at line 32 of file HSIFrame.hpp.

33 {
34 return (uint64_t)timestamp_low | ((uint64_t)timestamp_high << 32); // NOLINT(build/unsigned)
35 }

◆ set_timestamp()

void dunedaq::detdataformats::HSIFrame::set_timestamp ( uint64_t ts)
inline

Definition at line 37 of file HSIFrame.hpp.

38 {
40 timestamp_high = ts >> 32;
41 }
PDS Frame with unphysical timestamp detected with ts

Member Data Documentation

◆ crate

word_t dunedaq::detdataformats::HSIFrame::crate

Definition at line 24 of file HSIFrame.hpp.

◆ detector_id

word_t dunedaq::detdataformats::HSIFrame::detector_id

Definition at line 24 of file HSIFrame.hpp.

◆ input_high

word_t dunedaq::detdataformats::HSIFrame::input_high

Definition at line 28 of file HSIFrame.hpp.

◆ input_low

word_t dunedaq::detdataformats::HSIFrame::input_low

Definition at line 27 of file HSIFrame.hpp.

◆ link

word_t dunedaq::detdataformats::HSIFrame::link

Definition at line 24 of file HSIFrame.hpp.

◆ sequence

word_t dunedaq::detdataformats::HSIFrame::sequence

Definition at line 30 of file HSIFrame.hpp.

◆ slot

word_t dunedaq::detdataformats::HSIFrame::slot

Definition at line 24 of file HSIFrame.hpp.

◆ timestamp_high

word_t dunedaq::detdataformats::HSIFrame::timestamp_high

Definition at line 26 of file HSIFrame.hpp.

◆ timestamp_low

word_t dunedaq::detdataformats::HSIFrame::timestamp_low

Definition at line 25 of file HSIFrame.hpp.

◆ trigger

word_t dunedaq::detdataformats::HSIFrame::trigger

Definition at line 29 of file HSIFrame.hpp.

◆ version

word_t dunedaq::detdataformats::HSIFrame::version

Definition at line 24 of file HSIFrame.hpp.


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