|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Header file for extended sensor API of HTU31D sensor. More...
#include <zephyr/device.h>Go to the source code of this file.
Macros | |
Diagnostics register bit flags | |
Bit positions of the diagnostics byte returned by htu31d_read_diagnostics(). | |
| #define | HTU31D_DIAG_HEATER_ON BIT(0) |
| Heater is currently enabled. | |
| #define | HTU31D_DIAG_TEMP_LOW_ERR BIT(1) |
| Temperature below minimum. | |
| #define | HTU31D_DIAG_TEMP_HIGH_ERR BIT(2) |
| Temperature above maximum. | |
| #define | HTU31D_DIAG_TEMP_OVER_ERR BIT(3) |
| Temperature under/over-run. | |
| #define | HTU31D_DIAG_HUMI_LOW_ERR BIT(4) |
| Humidity below minimum. | |
| #define | HTU31D_DIAG_HUMI_HIGH_ERR BIT(5) |
| Humidity above maximum. | |
| #define | HTU31D_DIAG_HUMI_OVER_ERR BIT(6) |
| Humidity under/over-run. | |
| #define | HTU31D_DIAG_NVM_ERR BIT(7) |
| NVM checksum error. | |
Functions | |
| int | htu31d_heater_set (const struct device *dev, bool enable) |
| Enable or disable the on-chip heater. | |
| int | htu31d_read_diagnostics (const struct device *dev, uint8_t *diag) |
| Read the sensor diagnostics register. | |
| int | htu31d_read_serial (const struct device *dev, uint32_t *serial) |
| Read the factory-programmed 24-bit serial number. | |
Header file for extended sensor API of HTU31D sensor.
This exposes APIs for the on-chip heater, diagnostics register, and factory-programmed serial number, which are outside the scope of the generic Zephyr sensor driver abstraction.