64 #ifndef CONFIG_HDC1000_I2C_ADDRESS 
   65 #define CONFIG_HDC1000_I2C_ADDRESS           (0x43) 
   75 #ifndef CONFIG_HDC1000_CONVERSION_TIME 
   76 #define CONFIG_HDC1000_CONVERSION_TIME       (26000) 
int hdc1000_trigger_conversion(const hdc1000_t *dev)
Trigger a new conversion.
 
int hdc1000_get_results(const hdc1000_t *dev, int16_t *temp, int16_t *hum)
Read conversion results for temperature and humidity.
 
int hdc1000_init(hdc1000_t *dev, const hdc1000_params_t *params)
Initialize the given HDC1000 device.
 
hdc1000_res_t
Possible resolution values.
 
int hdc1000_read_cached(const hdc1000_t *dev, int16_t *temp, int16_t *hum)
Extended read function including caching capability.
 
int hdc1000_read(const hdc1000_t *dev, int16_t *temp, int16_t *hum)
Convenience function for reading temperature and humidity.
 
@ HDC1000_14BIT
14-bit conversion
 
@ HDC1000_11BIT
11-bit conversion
 
@ HDC1000_NOBUS
errors while initializing the I2C bus
 
@ HDC1000_BUSERR
error during I2C communication
 
@ HDC1000_NODEV
no HDC1000 device found on the bus
 
@ HDC1000_OK
everything went as expected
 
uint_fast8_t i2c_t
Default i2c_t type definition.
 
Register definitions for HDC1000 devices.
 
Low-level I2C peripheral driver interface definition.
 
Parameters needed for device initialization.
 
uint32_t renew_interval
interval for cache renewal
 
hdc1000_res_t res
resolution used for sampling temp and hum
 
uint8_t addr
address on that bus
 
i2c_t i2c
bus the device is connected to
 
Device descriptor for HDC1000 sensors.
 
hdc1000_params_t p
Configuration parameters.