Interface definition for the HDC1000 sensor driver. More...

Detailed Description

Interface definition for the HDC1000 sensor driver.

Author
Johann Fischer j.fis.nosp@m.cher.nosp@m.@phyt.nosp@m.ec.d.nosp@m.e
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file hdc1000.h.

#include <stdint.h>
#include "periph/i2c.h"
#include "hdc1000_regs.h"
+ Include dependency graph for hdc1000.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hdc1000_params_t
 Parameters needed for device initialization. More...
 
struct  hdc1000_t
 Device descriptor for HDC1000 sensors. More...
 

Macros

#define CONFIG_HDC1000_I2C_ADDRESS   (0x43)
 Default I2C bus address of HDC1000 devices. More...
 
#define CONFIG_HDC1000_CONVERSION_TIME   (26000)
 Typical conversion time needed to acquire new values [in us]. More...
 

Enumerations

enum  { HDC1000_OK = 0, HDC1000_NODEV = -1, HDC1000_NOBUS = -2, HDC1000_BUSERR = -3 }
 HDC1000 specific return values. More...
 
enum  hdc1000_res_t { HDC1000_11BIT = (HDC1000_TRES11 | HDC1000_HRES11), HDC1000_14BIT = (HDC1000_TRES14 | HDC1000_HRES14) }
 Possible resolution values. More...
 

Functions

int hdc1000_init (hdc1000_t *dev, const hdc1000_params_t *params)
 Initialize the given HDC1000 device. More...
 
int hdc1000_trigger_conversion (const hdc1000_t *dev)
 Trigger a new conversion. More...
 
int hdc1000_get_results (const hdc1000_t *dev, int16_t *temp, int16_t *hum)
 Read conversion results for temperature and humidity. More...
 
int hdc1000_read (const hdc1000_t *dev, int16_t *temp, int16_t *hum)
 Convenience function for reading temperature and humidity. More...
 
int hdc1000_read_cached (const hdc1000_t *dev, int16_t *temp, int16_t *hum)
 Extended read function including caching capability. More...