30 #include <mraa/i2c.hpp> 33 #define HDC1000_NAME "hdc1000" 34 #define HDC1000_i2C_ADDRESS 0x43 35 #define HDC1000_MANUFACTURER_ID 0x5449 36 #define HDC1000_DEVICE_ID 0x1000 39 #define HDC1000_TEMPERATURE 0x00 40 #define HDC1000_HUMIDITY 0x01 41 #define HDC1000_CONFIGURATION 0x02 42 #define HDC1000_MANUFACTURER_ID_REG 0xFE 43 #define HDC1000_DEVICE_ID_REG 0xFF 46 #define HDC1000_RST_SOFT 0x8000 47 #define HDC1000_HEAT (1 << 13) 48 #define HDC1000_SEQ_MODE (1 << 12) 49 #define HDC1000_BTST_LOW (1 << 11) 50 #define HDC1000_TRES_14 (0) 51 #define HDC1000_TRES_11 (1 << 10) 52 #define HDC1000_HRES_14 (0) 53 #define HDC1000_HRES_11 (1 << 8) 54 #define HDC1000_HRES_8 (1 << 9) 56 #define SLEEP_SEC (1000*1000) 98 HDC1000 (
int bus,
int devAddr=HDC1000_i2C_ADDRESS);
142 mraa::I2c m_i2ControlCtx;
144 int32_t m_temperature;
HDC1000(int bus, int devAddr=HDC1000_i2C_ADDRESS)
Definition: hdc1000.cpp:39
void sampleData(void)
Definition: hdc1000.cpp:97
int checkID(void)
Definition: hdc1000.cpp:64
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
API for the HDC1000 Temperature & Humidity Sensor.
Definition: hdc1000.hpp:90
float getHumidity(int bSampleData=false)
Definition: hdc1000.cpp:129
void resetSensor(void)
Definition: hdc1000.cpp:86
float getTemperature(int bSampleData=false)
Definition: hdc1000.cpp:120