#include <DAPHNEStreamFrame.hpp>
|
uint64_t | get_timestamp () const |
|
void | set_timestamp (const uint64_t new_timestamp) |
| Set the 64-bit timestamp of the frame.
|
|
uint16_t | get_adc (uint i, uint chn) const |
| Get the i ADC value of chn in the frame.
|
|
void | set_adc (uint i, uint chn, uint16_t val) |
| Set the i ADC value of chn in the frame to val .
|
|
uint8_t | get_channel0 () const |
| Get the channel 0 from the DAPHNE Stream frame header
|
|
uint8_t | get_channel1 () const |
| Get the channel 1 from the DAPHNE Stream frame header
|
|
uint8_t | get_channel2 () const |
| Get the channel 2 from the DAPHNE Stream frame header
|
|
uint8_t | get_channel3 () const |
| Get the channel 3 from the DAPHNE Stream frame header
|
|
Definition at line 29 of file DAPHNEStreamFrame.hpp.
◆ word_t
◆ get_adc()
uint16_t dunedaq::fddetdataformats::DAPHNEStreamFrame::get_adc |
( |
uint | i, |
|
|
uint | chn ) const |
|
inline |
Get the i
ADC value of chn
in the frame.
Definition at line 86 of file DAPHNEStreamFrame.hpp.
87 {
88
90 throw std::out_of_range("ADC index out of range");
91
93 throw std::out_of_range("ADC index out of range");
94
95
97
100
102
104 uint16_t adc =
adc_words[word_index] >> first_bit_position;
105
108 adc |=
adc_words[word_index + 1] << bits_from_first_word;
109 }
110
111 return adc & 0x3FFFu;
112 }
◆ get_channel0()
uint8_t dunedaq::fddetdataformats::DAPHNEStreamFrame::get_channel0 |
( |
| ) |
const |
|
inline |
◆ get_channel1()
uint8_t dunedaq::fddetdataformats::DAPHNEStreamFrame::get_channel1 |
( |
| ) |
const |
|
inline |
◆ get_channel2()
uint8_t dunedaq::fddetdataformats::DAPHNEStreamFrame::get_channel2 |
( |
| ) |
const |
|
inline |
◆ get_channel3()
uint8_t dunedaq::fddetdataformats::DAPHNEStreamFrame::get_channel3 |
( |
| ) |
const |
|
inline |
◆ get_timestamp()
uint64_t dunedaq::fddetdataformats::DAPHNEStreamFrame::get_timestamp |
( |
| ) |
const |
|
inline |
◆ set_adc()
void dunedaq::fddetdataformats::DAPHNEStreamFrame::set_adc |
( |
uint | i, |
|
|
uint | chn, |
|
|
uint16_t | val ) |
|
inline |
Set the i
ADC value of chn
in the frame to val
.
Definition at line 117 of file DAPHNEStreamFrame.hpp.
118 {
119
121 throw std::out_of_range("ADC index out of range");
122
124 throw std::out_of_range("ADC index out of range");
125
127 throw std::out_of_range("ADC value out of range");
128
129
130
132
135
137
139 uint32_t
mask = (1 << (first_bit_position)) - 1;
140 adc_words[word_index] = ((val << first_bit_position) & ~mask) | (
adc_words[word_index] & mask);
141
146 }
147
148 }
◆ set_timestamp()
void dunedaq::fddetdataformats::DAPHNEStreamFrame::set_timestamp |
( |
const uint64_t | new_timestamp | ) |
|
|
inline |
◆ adc_words
◆ daq_header
◆ header
Header dunedaq::fddetdataformats::DAPHNEStreamFrame::header |
◆ s_adcs_per_channel
int dunedaq::fddetdataformats::DAPHNEStreamFrame::s_adcs_per_channel = 64 |
|
staticconstexpr |
◆ s_bits_per_adc
int dunedaq::fddetdataformats::DAPHNEStreamFrame::s_bits_per_adc = 14 |
|
staticconstexpr |
◆ s_bits_per_word
int dunedaq::fddetdataformats::DAPHNEStreamFrame::s_bits_per_word = 8 * sizeof(word_t) |
|
staticconstexpr |
◆ s_channels_per_frame
int dunedaq::fddetdataformats::DAPHNEStreamFrame::s_channels_per_frame = 4 |
|
staticconstexpr |
◆ s_daphnes_per_frame
int dunedaq::fddetdataformats::DAPHNEStreamFrame::s_daphnes_per_frame = 1 |
|
staticconstexpr |
◆ s_num_adc_words
◆ trailer
Trailer dunedaq::fddetdataformats::DAPHNEStreamFrame::trailer |
The documentation for this class was generated from the following file: