mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 18:32:23 +02:00
Add file metadata header to ring buffer
This commit is contained in:
@@ -12,6 +12,21 @@
|
||||
#include <chrono>
|
||||
#include "date.h"
|
||||
|
||||
struct FileBufferMetadata {
|
||||
// Needed by RingBuffer
|
||||
size_t buffer_slot_index;
|
||||
const size_t frame_bytes_size = 2*512*1024*1000;
|
||||
|
||||
uint64_t start_pulse_id;
|
||||
uint64_t stop_pulse_id;
|
||||
uint16_t module_id;
|
||||
|
||||
uint64_t pulse_id[1000];
|
||||
uint64_t frame_index[1000];
|
||||
uint32_t daq_rec[1000];
|
||||
uint16_t n_received_packets[1000];
|
||||
};
|
||||
|
||||
struct FrameMetadata
|
||||
{
|
||||
// Ring buffer needed data.
|
||||
|
||||
@@ -300,4 +300,5 @@ size_t RingBuffer<T>::get_slot_size()
|
||||
}
|
||||
|
||||
template class RingBuffer<FrameMetadata>;
|
||||
template class RingBuffer<UdpFrameMetadata>;
|
||||
template class RingBuffer<UdpFrameMetadata>;
|
||||
template class RingBuffer<FileBufferMetadata>;
|
||||
Reference in New Issue
Block a user