DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TDEEthFrame.hxx
Go to the documentation of this file.
1
3
4inline uint16_t
5TDEEthFrame::get_adc(int i_channel, int i_sample) const
6{
7
8 // Note the generic get_adc_2d function takes the channel and the sample (timeslice) in reverse order
9 // Also note that the value returned by get_adc_2d is stored in a uint64_t (TDEEthFrame::word_t) but is
10 // guaranteed to be storable in a uint16_t since TDEEthFrame::s_bits_per_adc < 16.
11
12 return static_cast<uint16_t>(
16 TDEEthFrame::s_bits_per_adc>(i_sample, i_channel, adc_words));
17}
18
19inline void
27
28} // namespace dunedaq::fddetdataformats
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 val)
Set the i_channel-th ADC value in the i_sample-th time sample to val.
static constexpr int s_time_samples_per_frame
static constexpr int s_num_adc_words_per_ts
word_t adc_words[s_time_samples_per_frame][s_num_adc_words_per_ts]
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