#include <DAPHNESuperChunkTypeAdapter.hpp>
◆ FrameType
◆ begin()
| FrameType * dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::begin |
( |
| ) |
|
|
inline |
◆ end()
| FrameType * dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::end |
( |
| ) |
|
|
inline |
◆ fake_adc_pattern()
| void dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::fake_adc_pattern |
( |
int | | ) |
|
|
inline |
◆ fake_frame_errors()
| void dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::fake_frame_errors |
( |
std::vector< uint16_t > * | | ) |
|
|
inline |
◆ fake_geoid()
| void dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::fake_geoid |
( |
uint16_t | crate_id, |
|
|
uint16_t | slot_id, |
|
|
uint16_t | link_id ) |
|
inline |
◆ fake_timestamps()
| void dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::fake_timestamps |
( |
uint64_t | first_timestamp, |
|
|
uint64_t | offset = expected_tick_difference ) |
|
inline |
Definition at line 51 of file DAPHNESuperChunkTypeAdapter.hpp.
52 {
53 uint64_t ts_next = first_timestamp;
55 auto df =
reinterpret_cast<dunedaq::fddetdataformats::DAPHNEFrame*
>(((uint8_t*)(&
data)) + i *
get_frame_size());
56 df->daq_header.timestamp_1 = ts_next;
57 df->daq_header.timestamp_2 = ts_next >> 32;
59 }
60 }
◆ get_frame_size()
| size_t dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::get_frame_size |
( |
| ) |
|
|
inline |
◆ get_num_frames()
| size_t dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::get_num_frames |
( |
| ) |
|
|
inline |
Definition at line 91 of file DAPHNESuperChunkTypeAdapter.hpp.
const constexpr std::size_t kDAPHNENumFrames
For DAPHNE the numbers are different. 12[DAPHNE frames] x 454[32-bit words] x 4[Bytes per word] = 217...
◆ get_payload_size()
| size_t dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::get_payload_size |
( |
| ) |
|
|
inline |
◆ get_timestamp()
| uint64_t dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::get_timestamp |
( |
| ) |
const |
|
inline |
◆ operator<()
Definition at line 31 of file DAPHNESuperChunkTypeAdapter.hpp.
32 {
33 auto thisptr =
reinterpret_cast<const dunedaq::fddetdataformats::DAPHNEFrame*
>(&
data);
34 auto otherptr = reinterpret_cast<const dunedaq::fddetdataformats::DAPHNEFrame*>(&other.data);
35
36 return std::forward_as_tuple(thisptr->get_timestamp(), thisptr->get_channel()) < std::forward_as_tuple(otherptr->get_timestamp(), otherptr->get_channel());
37 }
◆ set_timestamp()
| void dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::set_timestamp |
( |
uint64_t | ts | ) |
|
|
inline |
Definition at line 44 of file DAPHNESuperChunkTypeAdapter.hpp.
45 {
46 auto frame =
reinterpret_cast<dunedaq::fddetdataformats::DAPHNEFrame*
>(&
data);
47 frame->daq_header.timestamp_1 = ts;
48 frame->daq_header.timestamp_2 = ts >> 32;
49 }
◆ data
◆ expected_tick_difference
| const constexpr uint64_t dunedaq::fdreadoutlibs::types::DAPHNESuperChunkTypeAdapter::expected_tick_difference = 1024 |
|
staticconstexpr |
◆ fragment_type
◆ subsystem
The documentation for this struct was generated from the following file: