Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ti_hdc302x.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Psicontrol N.V.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
14
15#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_HDC302X_H_
16#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_HDC302X_H_
17
19#include <zephyr/drivers/i2c.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
26 /* Sensor low power Mode
27 * Rather than set this value directly, can only be set to operate in one of four modes:
28 *
29 * HDC302X_SENSOR_POWER_MODE_0
30 * HDC302X_SENSOR_POWER_MODE_1
31 * HDC302X_SENSOR_POWER_MODE_2
32 * HDC302X_SENSOR_POWER_MODE_3
33 *
34 * See datasheet for more info on different modes.
35 */
37
38 /* Sensor Automatic Measurement Mode
39 * Can only be set to one of the following values:
40 *
41 * HDC302X_SENSOR_MEAS_INTERVAL_MANUAL,
42 * HDC302X_SENSOR_MEAS_INTERVAL_0_5,
43 * HDC302X_SENSOR_MEAS_INTERVAL_1,
44 * HDC302X_SENSOR_MEAS_INTERVAL_2,
45 * HDC302X_SENSOR_MEAS_INTERVAL_4,
46 * HDC302X_SENSOR_MEAS_INTERVAL_10,
47 */
49 /* Sensor status register */
51 /* Sensor heater level */
52 SENSOR_ATTR_HEATER_LEVEL, /* Heater level (0-14) */
53};
54
63
66 HDC302X_SENSOR_MEAS_INTERVAL_0_5, /* 1 Measurement per 2 Seconds */
67 HDC302X_SENSOR_MEAS_INTERVAL_1, /* 1 Measurement per Second */
68 HDC302X_SENSOR_MEAS_INTERVAL_2, /* 2 Measurements per Second */
69 HDC302X_SENSOR_MEAS_INTERVAL_4, /* 4 Measurements per Second */
70 HDC302X_SENSOR_MEAS_INTERVAL_10, /* 10 Measurements per Second */
71
73};
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_HDC302X_H_ */
Main header file for I2C (Inter-Integrated Circuit) driver API.
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:443
Main header file for sensor driver API.
sensor_power_mode_hdc302x
Definition ti_hdc302x.h:55
@ HDC302X_SENSOR_POWER_MODE_0
Definition ti_hdc302x.h:56
@ HDC302X_SENSOR_POWER_MODE_2
Definition ti_hdc302x.h:58
@ HDC302X_SENSOR_POWER_MODE_3
Definition ti_hdc302x.h:59
@ HDC302X_SENSOR_POWER_MODE_1
Definition ti_hdc302x.h:57
@ HDC302X_SENSOR_POWER_MODE_MAX
Definition ti_hdc302x.h:61
sensor_measurement_interval_hdc302x
Definition ti_hdc302x.h:64
@ HDC302X_SENSOR_MEAS_INTERVAL_1
Definition ti_hdc302x.h:67
@ HDC302X_SENSOR_MEAS_INTERVAL_MAX
Definition ti_hdc302x.h:72
@ HDC302X_SENSOR_MEAS_INTERVAL_0_5
Definition ti_hdc302x.h:66
@ HDC302X_SENSOR_MEAS_INTERVAL_10
Definition ti_hdc302x.h:70
@ HDC302X_SENSOR_MEAS_INTERVAL_MANUAL
Definition ti_hdc302x.h:65
@ HDC302X_SENSOR_MEAS_INTERVAL_2
Definition ti_hdc302x.h:68
@ HDC302X_SENSOR_MEAS_INTERVAL_4
Definition ti_hdc302x.h:69
sensor_attribute_hdc302x
Definition ti_hdc302x.h:25
@ SENSOR_ATTR_HEATER_LEVEL
Definition ti_hdc302x.h:52
@ SENSOR_ATTR_POWER_MODE
Definition ti_hdc302x.h:36
@ SENSOR_ATTR_STATUS_REGISTER
Definition ti_hdc302x.h:50
@ SENSOR_ATTR_INTEGRATION_TIME
Definition ti_hdc302x.h:48