17#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_HTU31D_H_
18#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_HTU31D_H_
39#define HTU31D_DIAG_HEATER_ON BIT(0)
40#define HTU31D_DIAG_TEMP_LOW_ERR BIT(1)
41#define HTU31D_DIAG_TEMP_HIGH_ERR BIT(2)
42#define HTU31D_DIAG_TEMP_OVER_ERR BIT(3)
43#define HTU31D_DIAG_HUMI_LOW_ERR BIT(4)
44#define HTU31D_DIAG_HUMI_HIGH_ERR BIT(5)
45#define HTU31D_DIAG_HUMI_OVER_ERR BIT(6)
46#define HTU31D_DIAG_NVM_ERR BIT(7)
int htu31d_read_serial(const struct device *dev, uint32_t *serial)
Read the factory-programmed 24-bit serial number.
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.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:513