a1b77fd589
git grep -l 'u\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g" git grep -l 's\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g" Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
29 lines
524 B
C
29 lines
524 B
C
/*
|
|
* 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_ */
|