1 /*
2  * Copyright (c) 2021 Innoseis B.V
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMP116_H_
8 #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMP116_H_
9 
10 #include <zephyr/device.h>
11 #include <zephyr/drivers/sensor.h>
12 #include <sys/types.h>
13 
14 enum sensor_attribute_tmp_116 {
15 	/** Turn on power saving/one shot mode */
16 	SENSOR_ATTR_TMP116_ONE_SHOT_MODE = SENSOR_ATTR_PRIV_START,
17 	/** Shutdown the sensor */
18 	SENSOR_ATTR_TMP116_SHUTDOWN_MODE,
19 	/** Turn on continuous conversion */
20 	SENSOR_ATTR_TMP116_CONTINUOUS_CONVERSION_MODE,
21 };
22 
23 #define EEPROM_TMP116_SIZE (4 * sizeof(uint16_t))
24 
25 int tmp116_eeprom_read(const struct device *dev, off_t offset, void *data,
26 		       size_t len);
27 
28 int tmp116_eeprom_write(const struct device *dev, off_t offset,
29 			const void *data, size_t len);
30 
31 #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMP116_H_ */
32