Shivanand Gowda / HDC1080

Dependents:   hdc1080_Hellow_world Temp_Humid

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HDC1080.h Source File

HDC1080.h

00001 
00002 #ifndef HDC1080_H
00003 #define HDC1080_H
00004 
00005  
00006  
00007 
00008 
00009 
00010 class HDC1080:public I2C {
00011 public:
00012    
00013 
00014     
00015     HDC1080( PinName sda, PinName slc) ;                 // constructor
00016 
00017 //    ~HDC1080();                                          // destructor
00018 
00019     int ReadSignature(void);
00020     float readTemperature( void);                   // to read the Temperature from HDC1080 
00021     float readHumidity(void);                       // to read the Humidity from HDC1080
00022     unsigned long readSerialNumber(void);            // to read the Humidity from HDC1080
00023 
00024 protected:
00025      uint16_t read2Bytes(int chip_addr, int offset);
00026 };
00027 
00028 #endif
00029 
00030