summaryrefslogtreecommitdiff
path: root/src/typedefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/typedefs.h')
-rw-r--r--src/typedefs.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/typedefs.h b/src/typedefs.h
new file mode 100644
index 0000000..2af2921
--- /dev/null
+++ b/src/typedefs.h
@@ -0,0 +1,33 @@
+#pragma once
+
+#include <libcamera/pixel_format.h>
+
+#include "constants.h"
+
+struct Counters
+{
+ uint32_t timestampUs{0};
+ uint32_t measurementCounter{0};
+ int32_t encoderPosition{0};
+};
+
+struct Image
+{
+ int width;
+ int height;
+ uint16_t data[img_height][img_width];
+ uint16_t rotated_cw[img_width][img_height];
+ size_t dataSize;
+ unsigned int stride;
+ libcamera::PixelFormat pixelFormat;
+ Counters counters{};
+};
+
+struct requested_params_t
+{
+ int32_t exposureTime = {1000};
+ int32_t laserLevel = {3000};
+ uint32_t stepsPerMm{200};
+};
+
+enum ScanningModeFlags : uint8_t { None = 0, Calibration };