|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Struct for accessing raw DAPHNE eth stream frames. More...
#include <DAPHNEEthStreamFrame.hpp>
Classes | |
| struct | ChannelWord |
| struct | Header |
Public Types | |
| using | word_t = uint64_t |
Public Member Functions | |
| uint16_t | get_adc (int i_adc, int i_channel) const |
Get the i_adc-th ADC value of i_channel-th channel in the frame. | |
| void | set_adc (int i_adc, int i_channel, uint16_t val) |
Set the i_adc-th ADC value of i_channel-th channel in the frame to val. | |
| uint64_t | get_timestamp () const |
| Get the starting 64-bit timestamp of the frame. | |
| void | set_timestamp (const uint64_t new_timestamp) |
| Set the starting 64-bit timestamp of the frame. | |
| uint8_t | get_channel (const int i_channel) const |
| Get the channel identifier of the frame. | |
| void | set_channel (const int i_channel, const uint8_t new_channel_val) |
| Set the channel identifier of the frame. | |
| uint8_t | get_channel0 () const |
| Get the channel 0 from the DAPHNE Stream frame header. | |
| uint8_t | get_channel1 () const |
| Get the channel 1 from the DAPHNE Stream frame header. | |
| uint8_t | get_channel2 () const |
| Get the channel 2 from the DAPHNE Stream frame header. | |
| uint8_t | get_channel3 () const |
| Get the channel 3 from the DAPHNE Stream frame header. | |
| bool | operator< (const DAPHNEEthStreamFrame &other) const |
Public Attributes | |
| detdataformats::DAQEthHeader | daq_header |
| Header | header |
| word_t | adc_words [s_num_adc_words] |
Static Public Attributes | |
| static constexpr uint8_t | version = 1 |
| static constexpr int | s_bits_per_adc = 14 |
| static constexpr int | s_bits_per_word = 8 * sizeof(word_t) |
| static constexpr int | s_adcs_per_channel = 280 |
| static constexpr int | s_num_channels = 4 |
| static constexpr int | s_num_adc_words = s_num_channels * s_adcs_per_channel * s_bits_per_adc / s_bits_per_word |
| static constexpr std::size_t | s_expected_bytes |
Struct for accessing raw DAPHNE eth stream frames.
The canonical definition of the DAPHNE format is given in EDMS document 2088726: https://edms.cern.ch/document/2088726/XXX (XXX a stand-in for the doc version, e.g. 5)
Definition at line 42 of file DAPHNEEthStreamFrame.hpp.
| using dunedaq::fddetdataformats::DAPHNEEthStreamFrame::word_t = uint64_t |
Definition at line 45 of file DAPHNEEthStreamFrame.hpp.
|
inline |
Get the i_adc-th ADC value of i_channel-th channel in the frame.
Definition at line 28 of file DAPHNEEthStreamFrame.hxx.
|
inline |
Get the channel identifier of the frame.
Definition at line 5 of file DAPHNEEthStreamFrame.hxx.
|
inline |
Get the channel 0 from the DAPHNE Stream frame header.
Definition at line 92 of file DAPHNEEthStreamFrame.hpp.
|
inline |
Get the channel 1 from the DAPHNE Stream frame header.
Definition at line 95 of file DAPHNEEthStreamFrame.hpp.
|
inline |
Get the channel 2 from the DAPHNE Stream frame header.
Definition at line 98 of file DAPHNEEthStreamFrame.hpp.
|
inline |
Get the channel 3 from the DAPHNE Stream frame header.
Definition at line 101 of file DAPHNEEthStreamFrame.hpp.
|
inline |
Get the starting 64-bit timestamp of the frame.
Definition at line 80 of file DAPHNEEthStreamFrame.hpp.
|
inline |
Definition at line 103 of file DAPHNEEthStreamFrame.hpp.
|
inline |
Set the i_adc-th ADC value of i_channel-th channel in the frame to val.
Definition at line 37 of file DAPHNEEthStreamFrame.hxx.
|
inline |
Set the channel identifier of the frame.
Definition at line 16 of file DAPHNEEthStreamFrame.hxx.
|
inline |
Set the starting 64-bit timestamp of the frame.
Definition at line 83 of file DAPHNEEthStreamFrame.hpp.
| word_t dunedaq::fddetdataformats::DAPHNEEthStreamFrame::adc_words[s_num_adc_words] |
Definition at line 109 of file DAPHNEEthStreamFrame.hpp.
| detdataformats::DAQEthHeader dunedaq::fddetdataformats::DAPHNEEthStreamFrame::daq_header |
Definition at line 107 of file DAPHNEEthStreamFrame.hpp.
| Header dunedaq::fddetdataformats::DAPHNEEthStreamFrame::header |
Definition at line 108 of file DAPHNEEthStreamFrame.hpp.
|
staticconstexpr |
Definition at line 52 of file DAPHNEEthStreamFrame.hpp.
|
staticconstexpr |
Definition at line 50 of file DAPHNEEthStreamFrame.hpp.
|
staticconstexpr |
Definition at line 51 of file DAPHNEEthStreamFrame.hpp.
|
staticconstexpr |
Definition at line 70 of file DAPHNEEthStreamFrame.hpp.
|
staticconstexpr |
Definition at line 54 of file DAPHNEEthStreamFrame.hpp.
|
staticconstexpr |
Definition at line 53 of file DAPHNEEthStreamFrame.hpp.
|
staticconstexpr |
Definition at line 48 of file DAPHNEEthStreamFrame.hpp.