mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 03:52:43 +02:00
37 lines
657 B
C++
37 lines
657 B
C++
#ifndef SF_DAQ_BUFFER_FORMATS_HPP
|
|
#define SF_DAQ_BUFFER_FORMATS_HPP
|
|
|
|
#pragma pack(push)
|
|
#pragma pack(1)
|
|
struct ModuleFrame {
|
|
uint64_t id;
|
|
uint64_t pulse_id;
|
|
uint64_t frame_index;
|
|
uint64_t daq_rec;
|
|
uint64_t n_recv_packets;
|
|
uint64_t module_id;
|
|
uint16_t bit_depth;
|
|
uint16_t pos_y;
|
|
uint16_t pos_x;
|
|
};
|
|
#pragma pack(pop)
|
|
|
|
|
|
#pragma pack(push)
|
|
#pragma pack(1)
|
|
struct ImageMetadata {
|
|
uint64_t id;
|
|
uint64_t height;
|
|
uint64_t width;
|
|
uint64_t dtype;
|
|
uint64_t encoding;
|
|
uint64_t source_id;
|
|
uint64_t status;
|
|
uint64_t user_1;
|
|
uint64_t user_2;
|
|
};
|
|
#pragma pack(pop)
|
|
|
|
|
|
#endif //SF_DAQ_BUFFER_FORMATS_HPP
|