text: /*
   * Copyright (c) 2018 Alexander Wachter
   *
   * SPDX-License-Identifier: Apache-2.0
   */
  
  #ifndef ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_
  #define ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_
  
  #include <device.h>
  #include <sys/util.h>
  
  struct iaq_registers {
  	uint16_t co2_pred;
  	uint8_t  status;
  	int32_t resistance;
  	uint16_t voc;
  } __packed;
  
  struct iaq_core_data {
  	struct device *i2c;
  	uint16_t co2;
  	uint16_t voc;
  	uint8_t status;
  	int32_t resistance;
  };
  
  #endif /* ZEPHYR_DRIVERS_SENSOR_AMS_IAQCORE_IAQCORE_H_ */
  