Loading...
Searching...
No Matches
HIH6130 humidity and temperature sensor

Device driver for Honeywell HumidIcon Digital Humidity/Temperature Sensors: HIH-6130/6131 Series. More...

Detailed Description

Device driver for Honeywell HumidIcon Digital Humidity/Temperature Sensors: HIH-6130/6131 Series.

Files

file  hih6130.h
 Device driver for Honeywell HumidIcon Digital Humidity/Temperature Sensors: HIH-6130/6131 Series.
 

Data Structures

struct  hih6130_t
 Device descriptor for HIH6130/HIH6131 sensors. More...
 

Functions

void hih6130_init (hih6130_t *dev, i2c_t i2c, uint8_t address)
 Initialize a sensor.
 
int hih6130_get_humidity_temperature (const hih6130_t *dev, int32_t *humidity_milli_percent, int32_t *temperature_milli_celsius)
 Read humidity and temperature.
 

Function Documentation

◆ hih6130_get_humidity_temperature()

int hih6130_get_humidity_temperature ( const hih6130_t dev,
int32_t *  humidity_milli_percent,
int32_t *  temperature_milli_celsius 
)

Read humidity and temperature.

Parameters
[in]devSensor device descriptor
[out]humidity_milli_percentRelative humidity in E-03 %
[out]temperature_milli_celsiusTemperature in m°C
Return values
0success
-1error
1data is stale

◆ hih6130_init()

void hih6130_init ( hih6130_t dev,
i2c_t  i2c,
uint8_t  address 
)

Initialize a sensor.

Parameters
[out]devdevice descriptor of sensor to initialize
[in]i2cI2C bus the sensor is connected to
[in]addressI2C slave address of the sensor