mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 17:02:23 +02:00
New ReplayBuffer struct for data transfer
This commit is contained in:
@@ -13,4 +13,14 @@ struct ImageMetadataBuffer
|
||||
uint16_t n_images;
|
||||
};
|
||||
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
struct ReplayBuffer
|
||||
{
|
||||
ModuleFrame metadata[core_buffer::REPLAY_READ_BUFFER_SIZE];
|
||||
uint64_t start_pulse_id;
|
||||
uint16_t n_frames;
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
#endif //SF_DAQ_BUFFER_FORMATS_HPP
|
||||
|
||||
@@ -104,5 +104,6 @@ void FastQueue<T>::release()
|
||||
}
|
||||
|
||||
template class FastQueue<ImageMetadataBuffer>;
|
||||
template class FastQueue<ReplayBuffer>;
|
||||
template class FastQueue<ModuleFrame>;
|
||||
template class FastQueue<ModuleFrameBuffer>;
|
||||
|
||||
Reference in New Issue
Block a user