DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
WIBEthFrame.hxx
Go to the documentation of this file.
1
3
4inline uint16_t
5WIBEthFrame::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>(
11 i_sample, i_channel, adc_words));
12}
13
14inline void
15WIBEthFrame::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
20 i_sample, i_channel, adc_val, adc_words);
21}
22
23} // namespace dunedaq::fddetdataformats
word_t adc_words[s_time_samples_per_frame][s_num_adc_words_per_ts]
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.
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.
void set_adc_2d(const int i_sample, const int i_adc, WordType adc_val, WordType(&adc_matrix)[Rows][Columns])
Definition Utils.hpp:216
WordType get_adc_2d(const int i_sample, const int i_adc, const WordType(&adc_matrix)[Rows][Columns])
Definition Utils.hpp:179