SHT10/SHT11/SHT15 Device Driver. More...
SHT10/SHT11/SHT15 Device Driver.
Definition in file sht1x.h.
 Include dependency graph for sht1x.h:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | sht1x_dev_t | 
| SHT10/11/15 temperature humidity sensor.  More... | |
| struct | sht1x_params_t | 
| Parameters required to set up the SHT10/11/15 device driver.  More... | |
Enumerations | |
| enum | sht1x_conf_t { SHT1X_CONF_LOW_RESOLUTION = 0x01 , SHT1X_CONF_SKIP_CALIBRATION = 0x02 , SHT1X_CONF_ENABLE_HEATER = 0x04 , SHT1X_CONF_SKIP_CRC = 0x08 } | 
| Possible configuration (=status byte) values of the SHT10/11/15.  More... | |
| enum | sht1x_vdd_t {  SHT1X_VDD_5_0V = 0 , SHT1X_VDD_4_0V = 1 , SHT1X_VDD_3_5V = 2 , SHT1X_VDD_3_0V = 3 , SHT1X_VDD_2_5V = 4 }  | 
| Possible values for Vdd (measured temperature depends on it)  | |
Functions | |
| int | sht1x_init (sht1x_dev_t *dev, const sht1x_params_t *params) | 
| Initialize the SHT10/11/15 sensor.  More... | |
| int16_t | sht1x_temperature (const sht1x_dev_t *dev, uint16_t raw) | 
| Calculate the temperature from the raw input.  More... | |
| int16_t | sht1x_humidity (const sht1x_dev_t *dev, uint16_t raw, int16_t temp) | 
| Calculate the relative humidity from the raw input.  More... | |
| int | sht1x_read (const sht1x_dev_t *dev, int16_t *temp, int16_t *hum) | 
| Read the current temperature.  More... | |
| int | sht1x_configure (sht1x_dev_t *dev, sht1x_conf_t conf) | 
| Apply the given configuration (= status byte) to.  More... | |
| int | sht1x_read_status (sht1x_dev_t *dev, uint8_t *status) | 
| Read the status byte of an SHT1X sensor.  More... | |
| int | sht1x_reset (sht1x_dev_t *dev) | 
| Reset the sensor's configuration to default values.  More... | |