Zephyr API Documentation  3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sht4x.h File Reference

Extended public API for Sensirion's SHT4X T/RH sensors. More...

Go to the source code of this file.

Macros

#define SHT4X_HEATER_MAX_TEMP   65
 

Enumerations

enum  sensor_attribute_sht4x { SENSOR_ATTR_SHT4X_HEATER_POWER = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_SHT4X_HEATER_DURATION }
 

Functions

int sht4x_fetch_with_heater (const struct device *dev)
 Fetches data using the on-chip heater.
 

Detailed Description

Extended public API for Sensirion's SHT4X T/RH sensors.

This exposes an API to the on-chip heater which is specific to the application/environment and cannot be expressed within the sensor driver abstraction.

Macro Definition Documentation

◆ SHT4X_HEATER_MAX_TEMP

#define SHT4X_HEATER_MAX_TEMP   65

Enumeration Type Documentation

◆ sensor_attribute_sht4x

Enumerator
SENSOR_ATTR_SHT4X_HEATER_POWER 
SENSOR_ATTR_SHT4X_HEATER_DURATION 

Function Documentation

◆ sht4x_fetch_with_heater()

int sht4x_fetch_with_heater ( const struct device dev)

Fetches data using the on-chip heater.

Measurement is always done with "high" repeatability.

Parameters
devPointer to the sensor device
Returns
0 if successful, negative errno code if failure.