From 9bb37f327e607a90eb1881563da5139f7ae5276a Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Thu, 12 Dec 2024 21:00:23 -0500 Subject: port to separate core for sd --- test_fw/src/channel.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 test_fw/src/channel.h (limited to 'test_fw/src/channel.h') 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 +#include + +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(Measurement::MAX)]; +}; + +extern QueueHandle_t MEAS_CHANNEL; -- cgit v1.3.1