1 /*
2  * Copyright (c) 2021, Leonard Pollak
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * @file
9  * @brief Extended public API for Sensirion's SGP40 gas sensor
10  *
11  * This exposes two attributes for the SGP40 which can be used for
12  * setting the on-chip Temperature and Humidity compensation parameters.
13  */
14 
15 #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_SGP40_H_
16 #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_SGP40_H_
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 enum sensor_attribute_sgp40 {
23 	/* Temperature in degC; only the integer part is used */
24 	SENSOR_ATTR_SGP40_TEMPERATURE = SENSOR_ATTR_PRIV_START,
25 	/* Relative Humidity in %; only the integer part is used */
26 	SENSOR_ATTR_SGP40_HUMIDITY
27 };
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_SGP40_H_ */
34