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