Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
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_TI_HDC302X_H_
16
#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_TI_HDC302X_H_
17
18
#include <
zephyr/drivers/sensor.h
>
19
#include <
zephyr/drivers/i2c.h
>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
enum
sensor_attribute_hdc302x
{
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
*/
36
SENSOR_ATTR_POWER_MODE
=
SENSOR_ATTR_PRIV_START
+ 1,
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
*/
48
SENSOR_ATTR_INTEGRATION_TIME
,
49
/* Sensor status register */
50
SENSOR_ATTR_STATUS_REGISTER
,
51
/* Sensor heater level */
52
SENSOR_ATTR_HEATER_LEVEL
,
/* Heater level (0-14) */
53
};
54
55
enum
sensor_power_mode_hdc302x
{
56
HDC302X_SENSOR_POWER_MODE_0
,
/* (lowest noise) */
57
HDC302X_SENSOR_POWER_MODE_1
,
58
HDC302X_SENSOR_POWER_MODE_2
,
59
HDC302X_SENSOR_POWER_MODE_3
,
/* (lowest power) */
60
61
HDC302X_SENSOR_POWER_MODE_MAX
62
};
63
64
enum
sensor_measurement_interval_hdc302x
{
65
HDC302X_SENSOR_MEAS_INTERVAL_MANUAL
,
/* Manual Mode */
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
72
HDC302X_SENSOR_MEAS_INTERVAL_MAX
73
};
74
75
#ifdef __cplusplus
76
}
77
#endif
78
79
#endif
/* ZEPHYR_INCLUDE_DRIVERS_SENSOR_TI_HDC302X_H_ */
i2c.h
Main header file for I2C (Inter-Integrated Circuit) driver API.
SENSOR_ATTR_PRIV_START
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition
sensor.h:448
sensor.h
Main header file for sensor driver API.
sensor_power_mode_hdc302x
sensor_power_mode_hdc302x
Definition
ti_hdc302x.h:55
HDC302X_SENSOR_POWER_MODE_0
@ HDC302X_SENSOR_POWER_MODE_0
Definition
ti_hdc302x.h:56
HDC302X_SENSOR_POWER_MODE_2
@ HDC302X_SENSOR_POWER_MODE_2
Definition
ti_hdc302x.h:58
HDC302X_SENSOR_POWER_MODE_3
@ HDC302X_SENSOR_POWER_MODE_3
Definition
ti_hdc302x.h:59
HDC302X_SENSOR_POWER_MODE_1
@ HDC302X_SENSOR_POWER_MODE_1
Definition
ti_hdc302x.h:57
HDC302X_SENSOR_POWER_MODE_MAX
@ HDC302X_SENSOR_POWER_MODE_MAX
Definition
ti_hdc302x.h:61
sensor_measurement_interval_hdc302x
sensor_measurement_interval_hdc302x
Definition
ti_hdc302x.h:64
HDC302X_SENSOR_MEAS_INTERVAL_1
@ HDC302X_SENSOR_MEAS_INTERVAL_1
Definition
ti_hdc302x.h:67
HDC302X_SENSOR_MEAS_INTERVAL_MAX
@ HDC302X_SENSOR_MEAS_INTERVAL_MAX
Definition
ti_hdc302x.h:72
HDC302X_SENSOR_MEAS_INTERVAL_0_5
@ HDC302X_SENSOR_MEAS_INTERVAL_0_5
Definition
ti_hdc302x.h:66
HDC302X_SENSOR_MEAS_INTERVAL_10
@ HDC302X_SENSOR_MEAS_INTERVAL_10
Definition
ti_hdc302x.h:70
HDC302X_SENSOR_MEAS_INTERVAL_MANUAL
@ HDC302X_SENSOR_MEAS_INTERVAL_MANUAL
Definition
ti_hdc302x.h:65
HDC302X_SENSOR_MEAS_INTERVAL_2
@ HDC302X_SENSOR_MEAS_INTERVAL_2
Definition
ti_hdc302x.h:68
HDC302X_SENSOR_MEAS_INTERVAL_4
@ HDC302X_SENSOR_MEAS_INTERVAL_4
Definition
ti_hdc302x.h:69
sensor_attribute_hdc302x
sensor_attribute_hdc302x
Definition
ti_hdc302x.h:25
SENSOR_ATTR_HEATER_LEVEL
@ SENSOR_ATTR_HEATER_LEVEL
Definition
ti_hdc302x.h:52
SENSOR_ATTR_POWER_MODE
@ SENSOR_ATTR_POWER_MODE
Definition
ti_hdc302x.h:36
SENSOR_ATTR_STATUS_REGISTER
@ SENSOR_ATTR_STATUS_REGISTER
Definition
ti_hdc302x.h:50
SENSOR_ATTR_INTEGRATION_TIME
@ SENSOR_ATTR_INTEGRATION_TIME
Definition
ti_hdc302x.h:48
zephyr
drivers
sensor
ti_hdc302x.h
Generated on
for Zephyr API by
1.17.0