mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-22 06:34:35 +02:00
6928d931ce
So far we used 0 but this is not valid int he Eiger case where the frame_index gets set to 0 in each acquisition.
39 lines
699 B
C++
39 lines
699 B
C++
#ifndef SF_DAQ_BUFFER_FORMATS_HPP
|
|
#define SF_DAQ_BUFFER_FORMATS_HPP
|
|
|
|
#define INVALID_FRAME_INDEX UINT64_C(-1)
|
|
|
|
#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
|