CLTP 8 / HeptaTemp

Fork of HeptaTemp by Hepta 2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HeptaTemp.h Source File

HeptaTemp.h

00001 #ifndef MBED_HEPTA2TEMP_H
00002 #define MBED_HEPTA2TEMP_H
00003 #include"mbed.h"
00004 
00005 class HeptaTemp
00006 {
00007 public:
00008     HeptaTemp(PinName pin);
00009     void temp_sense(float* temp);
00010     void temp_sense_u16(char* temp_u16, int *dsize);
00011     void temp_sensing_vol(float* voltage);
00012 
00013 private:
00014 //resistance
00015     float R1 ;
00016     float R2 ;
00017     float R3;
00018     float R4;
00019     float R5;
00020     float Pt;
00021     float R_1;
00022     float R_2;
00023 //current
00024     float I;
00025 //voltage
00026     float Vref;
00027     
00028 //temperature coefficient
00029     float ce;
00030     
00031     AnalogIn _pin;
00032 
00033 };
00034 
00035 #endif