DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
fddetdataformats
include
fddetdataformats
detail
DAPHNEStreamFrame.hxx
Go to the documentation of this file.
1
2
namespace
dunedaq::fddetdataformats
{
3
4
inline
uint16_t
5
DAPHNEStreamFrame::get_adc
(uint i_adc, uint i_channel)
const
6
{
7
return
static_cast<
uint16_t
>
(
8
dunedaq::fddetdataformats::
9
get_adc_2d_as_1d<word_t, s_num_adc_words, s_bits_per_adc, s_adcs_per_channel, s_channels_per_frame>
(
10
static_cast<
int
>
(i_adc),
static_cast<
int
>
(i_channel),
adc_words
));
11
}
12
13
inline
void
14
DAPHNEStreamFrame::set_adc
(uint i_adc, uint i_channel, uint16_t val)
15
{
16
dunedaq::fddetdataformats::
17
set_adc_2d_as_1d<word_t, s_num_adc_words, s_bits_per_adc, s_adcs_per_channel, s_channels_per_frame>
(
18
static_cast<
int
>
(i_adc),
static_cast<
int
>
(i_channel), val,
adc_words
);
19
}
20
21
}
// namespace dunedaq::fddetdataformats
dunedaq::fddetdataformats::DAPHNEStreamFrame::adc_words
word_t adc_words[s_num_adc_words]
Definition
DAPHNEStreamFrame.hpp:61
dunedaq::fddetdataformats::DAPHNEStreamFrame::get_adc
uint16_t get_adc(uint i_adc, uint i_channel) const
Get the i ADC value of chn in the frame.
Definition
DAPHNEStreamFrame.hxx:5
dunedaq::fddetdataformats::DAPHNEStreamFrame::set_adc
void set_adc(uint i, uint chn, uint16_t val)
Set the i ADC value of chn in the frame to val.
Definition
DAPHNEStreamFrame.hxx:14
dunedaq::fddetdataformats
Definition
CRTBernFrame.hpp:23
dunedaq::fddetdataformats::get_adc_2d_as_1d
WordType get_adc_2d_as_1d(const int i_adc, const int i_channel, const WordType(&adc_matrix)[NWords])
Definition
Utils.hpp:40
dunedaq::fddetdataformats::set_adc_2d_as_1d
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
Generated on
for DUNE-DAQ by
1.16.1