DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
DAPHNEStreamFrame.hxx
Go to the documentation of this file.
1
3
4inline uint16_t
5DAPHNEStreamFrame::get_adc(uint i_adc, uint i_channel) const
6{
7 return static_cast<uint16_t>(
10 static_cast<int>(i_adc), static_cast<int>(i_channel), adc_words));
11}
12
13inline void
14DAPHNEStreamFrame::set_adc(uint i_adc, uint i_channel, uint16_t val)
15{
18 static_cast<int>(i_adc), static_cast<int>(i_channel), val, adc_words);
19}
20
21} // namespace dunedaq::fddetdataformats
uint16_t get_adc(uint i_adc, uint i_channel) 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.
WordType get_adc_2d_as_1d(const int i_adc, const int i_channel, const WordType(&adc_matrix)[NWords])
Definition Utils.hpp:40
void set_adc_2d_as_1d(const int i_adc, const int i_channel, const WordType adc_val, WordType(&adc_matrix)[NWords])
Definition Utils.hpp:94