From 211aef018180b294845129e4b3062d822a432ce1 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Tue, 5 May 2020 12:18:22 +0200 Subject: [PATCH] Switch implementation to module frame buffer --- core-buffer/include/jungfrau.hpp | 8 ++++++++ core-buffer/src/FastQueue.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/core-buffer/include/jungfrau.hpp b/core-buffer/include/jungfrau.hpp index a68508b..a3d9ce7 100644 --- a/core-buffer/include/jungfrau.hpp +++ b/core-buffer/include/jungfrau.hpp @@ -45,5 +45,13 @@ struct ModuleFrame { }; #pragma pack(pop) +struct ModuleFrameBuffer { + uint64_t pulse_id[JUNGFRAU_N_MODULES]; + uint64_t frame_index[JUNGFRAU_N_MODULES]; + uint64_t daq_rec[JUNGFRAU_N_MODULES]; + uint64_t n_received_packets[JUNGFRAU_N_MODULES]; + uint64_t module_id[JUNGFRAU_N_MODULES]; +}; + #endif \ No newline at end of file diff --git a/core-buffer/src/FastQueue.cpp b/core-buffer/src/FastQueue.cpp index 284efec..da70f25 100644 --- a/core-buffer/src/FastQueue.cpp +++ b/core-buffer/src/FastQueue.cpp @@ -105,4 +105,4 @@ void FastQueue::release() template class FastQueue; template class FastQueue; -template class FastQueue; \ No newline at end of file +template class FastQueue; \ No newline at end of file