TP CAN DII4A

Dependencies:   mbed-rtos mbed

Committer:
yoshiz37
Date:
Sat Jun 03 19:05:11 2017 +0000
Revision:
0:f7a3b8c3f8ce
TP CAN DII4A

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yoshiz37 0:f7a3b8c3f8ce 1 #ifndef THIH6130_H
yoshiz37 0:f7a3b8c3f8ce 2 #define THIH6130_H
yoshiz37 0:f7a3b8c3f8ce 3
yoshiz37 0:f7a3b8c3f8ce 4 #include "mbed.h"
yoshiz37 0:f7a3b8c3f8ce 5
yoshiz37 0:f7a3b8c3f8ce 6 class tHIH6130
yoshiz37 0:f7a3b8c3f8ce 7 {
yoshiz37 0:f7a3b8c3f8ce 8 private:
yoshiz37 0:f7a3b8c3f8ce 9 I2C *pI2c;
yoshiz37 0:f7a3b8c3f8ce 10 unsigned char WrAdr;
yoshiz37 0:f7a3b8c3f8ce 11 unsigned char RdAdr;
yoshiz37 0:f7a3b8c3f8ce 12
yoshiz37 0:f7a3b8c3f8ce 13 float Temp,Humi;
yoshiz37 0:f7a3b8c3f8ce 14
yoshiz37 0:f7a3b8c3f8ce 15
yoshiz37 0:f7a3b8c3f8ce 16
yoshiz37 0:f7a3b8c3f8ce 17 public:
yoshiz37 0:f7a3b8c3f8ce 18 tHIH6130(unsigned char aAdrHIH,I2C* apI2c);
yoshiz37 0:f7a3b8c3f8ce 19 float getTemp(void);
yoshiz37 0:f7a3b8c3f8ce 20 float getHumi(void);
yoshiz37 0:f7a3b8c3f8ce 21
yoshiz37 0:f7a3b8c3f8ce 22
yoshiz37 0:f7a3b8c3f8ce 23 int StartMesure(void); // Déclenche la mesure
yoshiz37 0:f7a3b8c3f8ce 24 int UpdateData(void); // Met à jour température et humidié, à appeler au plus tôt 50ms après StartMesure
yoshiz37 0:f7a3b8c3f8ce 25
yoshiz37 0:f7a3b8c3f8ce 26
yoshiz37 0:f7a3b8c3f8ce 27
yoshiz37 0:f7a3b8c3f8ce 28
yoshiz37 0:f7a3b8c3f8ce 29
yoshiz37 0:f7a3b8c3f8ce 30
yoshiz37 0:f7a3b8c3f8ce 31
yoshiz37 0:f7a3b8c3f8ce 32 };
yoshiz37 0:f7a3b8c3f8ce 33
yoshiz37 0:f7a3b8c3f8ce 34 #endif
yoshiz37 0:f7a3b8c3f8ce 35
yoshiz37 0:f7a3b8c3f8ce 36
yoshiz37 0:f7a3b8c3f8ce 37