Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tmp116.h
Go to the documentation of this file.
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>
12#include <sys/types.h>
13
22
23#define EEPROM_TMP116_SIZE (4 * sizeof(uint16_t))
24
25int tmp116_eeprom_read(const struct device *dev, off_t offset, void *data,
26 size_t len);
27
28int 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_ */
sensor_attribute_tmp_116
Definition tmp116.h:14
@ SENSOR_ATTR_TMP116_ONE_SHOT_MODE
Turn on power saving/one shot mode.
Definition tmp116.h:16
@ SENSOR_ATTR_TMP116_SHUTDOWN_MODE
Shutdown the sensor.
Definition tmp116.h:18
@ SENSOR_ATTR_TMP116_CONTINUOUS_CONVERSION_MODE
Turn on continuous conversion.
Definition tmp116.h:20
int tmp116_eeprom_write(const struct device *dev, off_t offset, const void *data, size_t len)
int tmp116_eeprom_read(const struct device *dev, off_t offset, void *data, size_t len)
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:359
__INTPTR_TYPE__ off_t
Definition types.h:36
Public APIs for the sensor driver.
Runtime device structure (in ROM) per driver instance.
Definition device.h:411