|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Struct for accessing raw DAPHNE eth frames. More...
#include <DAPHNEEthFrame.hpp>
Classes | |
| struct | Header |
Public Types | |
| using | word_t = uint64_t |
Public Member Functions | |
| uint16_t | get_adc (int i) const |
| Get the ith ADC value in the frame. | |
| void | set_adc (int i, uint16_t val) |
Set the ith ADC value 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 |
| Get the channel identifier of the frame. | |
| void | set_channel (const uint8_t new_channel) |
| Set the channel identifier of the frame. | |
| bool | operator< (const DAPHNEEthFrame &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_num_adcs = 1024 |
| static constexpr int | s_num_adc_words = s_num_adcs * s_bits_per_adc / s_bits_per_word |
| static constexpr size_t | s_expected_bytes = sizeof(detdataformats::DAQEthHeader) + Header::s_expected_bytes + s_num_adc_words * sizeof(word_t) |
Struct for accessing raw DAPHNE eth 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 41 of file DAPHNEEthFrame.hpp.
| using dunedaq::fddetdataformats::DAPHNEEthFrame::word_t = uint64_t |
Definition at line 44 of file DAPHNEEthFrame.hpp.
|
inline |
Get the ith ADC value in the frame.
The ADC words are 14 bits long, stored packed in the data structure. The order is:
Definition at line 5 of file DAPHNEEthFrame.hxx.
|
inline |
|
inline |
Get the starting 64-bit timestamp of the frame.
Definition at line 92 of file DAPHNEEthFrame.hpp.
|
inline |
Definition at line 103 of file DAPHNEEthFrame.hpp.
|
inline |
Set the ith ADC value in the frame to val.
Definition at line 17 of file DAPHNEEthFrame.hxx.
|
inline |
Set the channel identifier of the frame.
Definition at line 101 of file DAPHNEEthFrame.hpp.
|
inline |
Set the starting 64-bit timestamp of the frame.
Definition at line 95 of file DAPHNEEthFrame.hpp.
| word_t dunedaq::fddetdataformats::DAPHNEEthFrame::adc_words[s_num_adc_words] |
Definition at line 109 of file DAPHNEEthFrame.hpp.
| detdataformats::DAQEthHeader dunedaq::fddetdataformats::DAPHNEEthFrame::daq_header |
Definition at line 107 of file DAPHNEEthFrame.hpp.
| Header dunedaq::fddetdataformats::DAPHNEEthFrame::header |
Definition at line 108 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 49 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 50 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 77 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 52 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 51 of file DAPHNEEthFrame.hpp.
|
staticconstexpr |
Definition at line 47 of file DAPHNEEthFrame.hpp.