Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sht4x.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021, Leonard Pollak
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
16#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_SHT4X_H_
17#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_SHT4X_H_
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
24
25/* Maximum temperature above which the heater should not be used */
26#define SHT4X_HEATER_MAX_TEMP 65
27
29 /* Heater Power: 0, 1, 2 -> high, med, low */
31 /* Heater Duration: 0, 1 -> long, short */
33};
34
44int sht4x_fetch_with_heater(const struct device *dev);
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_SHT4X_H_ */
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:359
Public APIs for the sensor driver.
sensor_attribute_sht4x
Definition sht4x.h:28
@ SENSOR_ATTR_SHT4X_HEATER_DURATION
Definition sht4x.h:32
@ SENSOR_ATTR_SHT4X_HEATER_POWER
Definition sht4x.h:30
int sht4x_fetch_with_heater(const struct device *dev)
Fetches data using the on-chip heater.
Runtime device structure (in ROM) per driver instance.
Definition device.h:412