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()
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] | dev | Sensor device descriptor |
[out] | humidity_milli_percent | Relative humidity in E-03 % |
[out] | temperature_milli_celsius | Temperature in m°C |
- Return values
-
0 | success |
-1 | error |
1 | 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 |