1 /* 2 * Copyright (c) 2018 Alexander Wachter 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_ 8 #define ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_ 9 10 #include <zephyr/device.h> 11 #include <zephyr/sys/util.h> 12 13 struct iaq_registers { 14 uint16_t co2_pred; 15 uint8_t status; 16 int32_t resistance; 17 uint16_t voc; 18 } __packed; 19 20 struct iaq_core_config { 21 struct i2c_dt_spec i2c; 22 }; 23 24 struct iaq_core_data { 25 uint16_t co2; 26 uint16_t voc; 27 uint8_t status; 28 int32_t resistance; 29 }; 30 31 #endif /* ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_ */ 32