Albert Durdiev / Mbed 2 deprecated TP_CAN

Dependencies:   mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers tHIH6130.h Source File

tHIH6130.h

00001 #ifndef THIH6130_H
00002 #define THIH6130_H
00003 
00004 #include "mbed.h"
00005 
00006 class tHIH6130
00007 {
00008     private:
00009     I2C *pI2c;
00010     unsigned char WrAdr;
00011     unsigned char RdAdr;
00012     
00013     float   Temp,Humi;
00014     
00015     
00016     
00017     public:
00018     tHIH6130(unsigned char aAdrHIH,I2C* apI2c);
00019     float   getTemp(void);
00020     float   getHumi(void);
00021     
00022     
00023     int     StartMesure(void);  // Déclenche la mesure
00024     int     UpdateData(void);   // Met à jour température et humidié, à appeler au plus tôt 50ms après StartMesure
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 };
00033 
00034 #endif
00035 
00036 
00037