For Hepta-Sat Lite

HeptaTemp.h

Committer:
hepta2ume
Date:
2017-07-21
Revision:
1:a23c2cd65379
Parent:
0:f74735cb01bc
Child:
3:96c3dd85be15

File content as of revision 1:a23c2cd65379:

#ifndef MBED_HEPTA2TEMP_H
#define MBED_HEPTA2TEMP_H
#include"mbed.h"

class HeptaTemp
{
public:
    HeptaTemp(PinName pin);
    void temp_sense(float* temp);
    void temp_sense_u16(char* temp_u16, int *dsize);
    void temp_sensing_vol(float* voltage);

private:
//resistance
    float R1 ;
    float R2 ;
    float R3;
    float R4;
    float R5;
    float Pt;
    float R_1;
    float R_2;
//current
    float I;
//voltage
    float Vref;
    
//temperature coefficient
    float ce;
    
    AnalogIn _pin;

};

#endif