HDC1080 Digital Humidity | Sensor From Texas Instruments I2C Based

Dependents:   hdc1080_Hellow_world Temp_Humid

The HDC1080 is a digital humidity sensor with integrated temperature sensor that provides excellent measurement accuracy at very low power. The HDC1080 operates over a wide supply range, and is a low cost, low power alternative to competitive solutions in a wide range of common applications. The humidity and temperature sensors are factory calibrated.

HDC1080.h

Committer:
shivanandgowdakr
Date:
2018-10-06
Revision:
0:fdb750cc9ca8

File content as of revision 0:fdb750cc9ca8:


#ifndef HDC1080_H
#define HDC1080_H

 
 



class HDC1080:public I2C {
public:
   

    
    HDC1080( PinName sda, PinName slc) ;                 // constructor

//    ~HDC1080();                                          // destructor

    int ReadSignature(void);
    float readTemperature( void);                   // to read the Temperature from HDC1080 
    float readHumidity(void);                       // to read the Humidity from HDC1080
    unsigned long readSerialNumber(void);            // to read the Humidity from HDC1080

protected:
     uint16_t read2Bytes(int chip_addr, int offset);
};

#endif