eiger image assemble routine.

This commit is contained in:
lhdamiani
2021-07-05 22:03:41 +02:00
parent 4b8bada7ed
commit a81c1fa773
9 changed files with 142 additions and 84 deletions
+1 -2
View File
@@ -26,7 +26,7 @@ public:
size_t meta_n_bytes,
size_t data_n_bytes,
int n_modules,
int n_slots=buffer_config::RAM_BUFFER_N_SLOTS);
int n_slots);
~RamBuffer();
@@ -43,7 +43,6 @@ public:
const uint64_t image_id, const uint64_t module_id) const;
char* get_slot_meta(const uint64_t image_id) const;
};
+4
View File
@@ -2,6 +2,7 @@
#define EIGER_H
#include <cstdint>
#include <stdint.h>
#define N_MODULES 1
#define BYTES_PER_PACKET 4144
@@ -27,6 +28,9 @@
#define N_BYTES_PER_MODULE_LINE(bit_depth) ((MODULE_X_SIZE * bit_depth) / 8)
#define N_BYTES_PER_MODULE_FRAME(bit_depth) ((131072 * bit_depth) / 8)
// #define N_BYTES_PER_IMAGE_LINE(bit_depth, n_submodules) ((n_submodules / 2 * MODULE_X_SIZE * bit_depth) / 8)
// DR 16