sht1x_vdd_t
Possible values for Vdd (measured temperature depends on it)
int sht1x_reset(sht1x_dev_t *dev)
Reset the sensor's configuration to default values.
uint8_t vdd
Supply voltage of the SHT1X (as sht1x_vdd_t)
@ SHT1X_CONF_SKIP_CALIBRATION
Don't upload calibration data to register to safe 10 millisec.
gpio_t clk
GPIO connected to the clock pin of the SHT1X.
Parameters required to set up the SHT10/11/15 device driver.
int sht1x_read(const sht1x_dev_t *dev, int16_t *temp, int16_t *hum)
Read the current temperature.
sht1x_vdd_t vdd
The supply voltage of the SHT1X.
int sht1x_configure(sht1x_dev_t *dev, sht1x_conf_t conf)
Apply the given configuration (= status byte) to.
gpio_t clk
GPIO connected to the clock pin of the SHT1X.
@ SHT1X_CONF_ENABLE_HEATER
Waste 8mA at 5V to increase the sensor temperature up to 10°C.
int16_t sht1x_humidity(const sht1x_dev_t *dev, uint16_t raw, int16_t temp)
Calculate the relative humidity from the raw input.
int16_t temp_off
Offset to add to the measured temperature.
gpio_t data
GPIO connected to the data pin of the SHT1X.
SHT10/11/15 temperature humidity sensor.
@ SHT1X_CONF_LOW_RESOLUTION
Use 8/12 bit resolution instead of 12/14 bit for temp/hum.
@ SHT1X_CONF_SKIP_CRC
Skip the CRC check (and reading the CRC byte) to safe time.
Low-level GPIO peripheral driver interface definitions.
int16_t hum_off
Offset to add to the measured humidity.
int sht1x_init(sht1x_dev_t *dev, const sht1x_params_t *params)
Initialize the SHT10/11/15 sensor.
int16_t sht1x_temperature(const sht1x_dev_t *dev, uint16_t raw)
Calculate the temperature from the raw input.
int sht1x_read_status(sht1x_dev_t *dev, uint8_t *status)
Read the status byte of an SHT1X sensor.
uint8_t conf
Status byte (containing configuration) of the SHT1X.
sht1x_conf_t
Possible configuration (=status byte) values of the SHT10/11/15.
gpio_t data
GPIO connected to the data pin of the SHT1X.