uint8_t avgx
average sampling of humidity and temperature
int hts221_one_shot(const hts221_t *dev)
Set device to one shot measurement.
Parameters needed for device initialization.
unsigned int i2c_t
Default i2c_t type definition.
int16_t h1_t0_out
upper humitidy to temperature reference
int16_t t1_out
upper temperature reference raw value
i2c_t i2c
bus the device is connected to
int16_t t1_degc
upper temperature reference in degC
int hts221_read_temperature(const hts221_t *dev, int16_t *val)
Reading humidity and temperature.
int hts221_init(hts221_t *dev, const hts221_params_t *params)
Initialize the given HTS221 device.
int hts221_power_on(const hts221_t *dev)
Set device to active.
uint8_t addr
address on that bus
int hts221_set_rate(const hts221_t *dev, const uint8_t rate)
Set device to continuous measurements.
int hts221_read_humidity(const hts221_t *dev, uint16_t *val)
Reading humidity and temperature.
int16_t h0_t0_out
lower humitidy to temperature reference
uint8_t rate
output data rate
int16_t h0_rh
lower humitidy reference
int16_t t0_degc
lower temperature reference in degC
Device descriptor for HTS221 sensors.
int16_t h1_rh
upper humitidy reference
Register definitions for ST HTS221 devices.
int16_t t0_out
lower temperature reference raw value
hts221_params_t p
Configuration parameters.
int hts221_reboot(const hts221_t *dev)
Reboot device and reload base configuration.
int hts221_power_off(const hts221_t *dev)
Set device to power down.
int hts221_get_state(const hts221_t *dev)
Set device to power down.
Low-level I2C peripheral driver interface definition.