mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 08:32:43 +02:00
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#ifndef SF_DAQ_BUFFER_FORMATS_HPP
|
|
#define SF_DAQ_BUFFER_FORMATS_HPP
|
|
|
|
#include "buffer_config.hpp"
|
|
#include "jungfrau.hpp"
|
|
|
|
struct ImageMetadataBuffer
|
|
{
|
|
uint64_t pulse_id[core_buffer::REPLAY_READ_BUFFER_SIZE];
|
|
uint64_t frame_index[core_buffer::REPLAY_READ_BUFFER_SIZE];
|
|
uint32_t daq_rec[core_buffer::REPLAY_READ_BUFFER_SIZE];
|
|
uint8_t is_good_frame[core_buffer::REPLAY_READ_BUFFER_SIZE];
|
|
uint64_t data_n_bytes[core_buffer::REPLAY_READ_BUFFER_SIZE];
|
|
uint16_t n_images;
|
|
};
|
|
|
|
struct ImageMetadata
|
|
{
|
|
uint64_t pulse_id;
|
|
uint64_t frame_index;
|
|
uint32_t daq_rec;
|
|
uint8_t is_good_frame;
|
|
uint64_t data_n_bytes;
|
|
};
|
|
|
|
#pragma pack(push)
|
|
#pragma pack(1)
|
|
struct ReplayModuleFrameBuffer {
|
|
ModuleFrame frame[core_buffer::REPLAY_READ_BUFFER_SIZE];
|
|
bool is_frame_present[core_buffer::REPLAY_READ_BUFFER_SIZE];
|
|
bool is_good_frame[core_buffer::REPLAY_READ_BUFFER_SIZE];
|
|
uint16_t module_id;
|
|
uint64_t data_n_bytes;
|
|
uint16_t n_frames;
|
|
};
|
|
#pragma pack(pop)
|
|
|
|
#endif //SF_DAQ_BUFFER_FORMATS_HPP
|