DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
fddetdataformats
include
fddetdataformats
detail
WIBEthFrame.hxx
Go to the documentation of this file.
1
2
namespace
dunedaq::fddetdataformats
{
3
4
inline
uint16_t
5
WIBEthFrame::get_adc
(
int
i_channel,
int
i_sample)
const
6
{
7
8
// Note the generic get_adc_2d function takes the channel and the time sample in reverse order
9
return
static_cast<
uint16_t
>
(
10
dunedaq::fddetdataformats::get_adc_2d<word_t, s_time_samples_per_frame, s_num_adc_words_per_ts, s_bits_per_adc>
(
11
i_sample, i_channel,
adc_words
));
12
}
13
14
inline
void
15
WIBEthFrame::set_adc
(
int
i_channel,
int
i_sample, uint16_t adc_val)
16
{
17
18
// Note the generic set_adc_2d function takes the channel and the time sample in reverse order
19
dunedaq::fddetdataformats::set_adc_2d<word_t, s_time_samples_per_frame, s_num_adc_words_per_ts, s_bits_per_adc>
(
20
i_sample, i_channel, adc_val,
adc_words
);
21
}
22
23
}
// namespace dunedaq::fddetdataformats
dunedaq::fddetdataformats::WIBEthFrame::adc_words
word_t adc_words[s_time_samples_per_frame][s_num_adc_words_per_ts]
Definition
WIBEthFrame.hpp:76
dunedaq::fddetdataformats::WIBEthFrame::get_adc
uint16_t get_adc(int i_channel, int i_sample=0) const
Get the i_channel-th ADC value in the i_sample-th time sample.
Definition
WIBEthFrame.hxx:5
dunedaq::fddetdataformats::WIBEthFrame::set_adc
void set_adc(int i_channel, int i_sample, uint16_t adc_val)
Set the i_channel-th ADC value in the i_sample-th time sample to adc_val.
Definition
WIBEthFrame.hxx:15
dunedaq::fddetdataformats
Definition
CRTBernFrame.hpp:23
dunedaq::fddetdataformats::set_adc_2d
void set_adc_2d(const int i_sample, const int i_adc, WordType adc_val, WordType(&adc_matrix)[Rows][Columns])
Definition
Utils.hpp:216
dunedaq::fddetdataformats::get_adc_2d
WordType get_adc_2d(const int i_sample, const int i_adc, const WordType(&adc_matrix)[Rows][Columns])
Definition
Utils.hpp:179
Generated on
for DUNE-DAQ by
1.16.1