63 int32_t *humidity_milli_percent, int32_t *temperature_milli_celsius);
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.
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
Device descriptor for HIH6130/HIH6131 sensors.
uint8_t addr
the slave address of the sensor on the I2C bus
i2c_t i2c
I2C device the sensor is connected to.