aboutsummaryrefslogtreecommitdiff
path: root/test_fw/src/channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'test_fw/src/channel.h')
-rw-r--r--test_fw/src/channel.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/test_fw/src/channel.h b/test_fw/src/channel.h
new file mode 100644
index 0000000..eb38e64
--- /dev/null
+++ b/test_fw/src/channel.h
@@ -0,0 +1,36 @@
+#pragma once
+
+#include <FreeRTOS.h>
+#include <queue.h>
+
+constexpr uint8_t MEAS_CHAN_LEN = 32;
+
+enum class Measurement : uint8_t
+{
+ LUX,
+ TEMP,
+ HUM,
+ PRES,
+ GAS,
+ AX,
+ AY,
+ AZ,
+ GX,
+ GY,
+ GZ,
+
+#if USE_BSEC
+ CO2,
+ IAQ,
+#endif
+
+ MAX,
+};
+
+struct Message
+{
+ uint32_t uptime;
+ float measurement[static_cast<size_t>(Measurement::MAX)];
+};
+
+extern QueueHandle_t MEAS_CHANNEL;