Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Sensirion SHT4X temperature and humidity sensor. More...

Files

file  sht4x.h
 Header file for extended sensor API of SHT4X sensor.

Macros

#define SHT4X_HEATER_MAX_TEMP   65
 Maximum temperature above which the heater should not be used.

Enumerations

enum  sensor_attribute_sht4x { SENSOR_ATTR_SHT4X_HEATER_POWER = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_SHT4X_HEATER_DURATION }
 Custom sensor attributes for SHT4X. More...

Functions

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

Detailed Description

Sensirion SHT4X temperature and humidity sensor.

Macro Definition Documentation

◆ SHT4X_HEATER_MAX_TEMP

#define SHT4X_HEATER_MAX_TEMP   65

#include <zephyr/drivers/sensor/sht4x.h>

Maximum temperature above which the heater should not be used.

Enumeration Type Documentation

◆ sensor_attribute_sht4x

#include <zephyr/drivers/sensor/sht4x.h>

Custom sensor attributes for SHT4X.

Enumerator
SENSOR_ATTR_SHT4X_HEATER_POWER 

Heater Power.

0, 1, 2 -> high, med, low

SENSOR_ATTR_SHT4X_HEATER_DURATION 

Heater Duration.

0, 1 -> long, short

Function Documentation

◆ sht4x_fetch_with_heater()

int sht4x_fetch_with_heater ( const struct device * dev)

#include <zephyr/drivers/sensor/sht4x.h>

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.