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

Detailed Description

#include <stdint.h>
#include "periph/i2c.h"
#include "hdc1000_regs.h"
+ Include dependency graph for hdc1000.h:

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 HDC1000_I2C_ADDRESS   (0x43)
 Default I2C bus address of HDC1000 devices.
 
#define 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 (hdc1000_t *dev)
 Trigger a new conversion. More...
 
int hdc1000_get_results (hdc1000_t *dev, int16_t *temp, int16_t *hum)
 Read conversion results for temperature and humidity. More...
 
int hdc1000_read (hdc1000_t *dev, int16_t *temp, int16_t *hum)
 Convenience function for reading temperature and humidity. More...