Device driver for Honeywell HumidIcon Digital Humidity/Temperature Sensors: HIH-6130/6131 Series.
More...
Device driver for Honeywell HumidIcon Digital Humidity/Temperature Sensors: HIH-6130/6131 Series.
|
file | hih6130.h |
| Device driver for Honeywell HumidIcon Digital Humidity/Temperature Sensors: HIH-6130/6131 Series.
|
|
◆ hih6130_get_humidity_temperature_float()
int hih6130_get_humidity_temperature_float |
( |
const hih6130_t * |
dev, |
|
|
float * |
relative_humidity_percent, |
|
|
float * |
temperature_celsius |
|
) |
| |
Read humidity and temperature from sensor and convert to floating-point.
- Parameters
-
[in] | dev | Sensor device descriptor |
[out] | relative_humidity_percent | Measured relative humidity in percent |
[out] | temperature_celsius | Measured temperature in degrees Celsius |
- Returns
- 0 on success
-
-1 on error
-
1 if data is stale
◆ hih6130_init()
Initialize a sensor.
- Parameters
-
[out] | dev | device descriptor of sensor to initialize |
[in] | i2c | I2C bus the sensor is connected to |
[in] | address | I2C slave address of the sensor |