From cc7035c7a92fcbd19ef2e7b455552d85070bd978 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 24 Mar 2022 15:24:35 +0100 Subject: [PATCH] convenience struct --- include/scd4x_data.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/scd4x_data.h diff --git a/include/scd4x_data.h b/include/scd4x_data.h new file mode 100644 index 0000000..c8818e7 --- /dev/null +++ b/include/scd4x_data.h @@ -0,0 +1,17 @@ +#ifndef SCD4X_DATA_H +#define SCD4X_DATA_H + +struct scd4x_data { + uint16_t co2; + int32_t temperature; + int32_t humidity; +}; +typedef struct scd4x_data scd4x_data_t; + +struct scd4x_config { + scd4x_data_t* measure; + uint16_t delay; +}; +typedef struct scd4x_config scd4x_config_t; + +#endif