Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
tmp11x.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_TMP11X_H_
8#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMP11X_H_
9
10#include <zephyr/device.h>
12#include <sys/types.h>
13
22
23#define EEPROM_TMP11X_SIZE (4 * sizeof(uint16_t))
24
25int tmp11x_eeprom_read(const struct device *dev, off_t offset, void *data,
26 size_t len);
27
28int tmp11x_eeprom_write(const struct device *dev, off_t offset,
29 const void *data, size_t len);
30
31#endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMP11X_H_ */
sensor_attribute_tmp_11x
Definition tmp11x.h:14
@ SENSOR_ATTR_TMP11X_CONTINUOUS_CONVERSION_MODE
Turn on continuous conversion.
Definition tmp11x.h:20
@ SENSOR_ATTR_TMP11X_SHUTDOWN_MODE
Shutdown the sensor.
Definition tmp11x.h:18
@ SENSOR_ATTR_TMP11X_ONE_SHOT_MODE
Turn on power saving/one shot mode.
Definition tmp11x.h:16
int tmp11x_eeprom_write(const struct device *dev, off_t offset, const void *data, size_t len)
int tmp11x_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:368
__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:504