La Suno / Mbed 2 deprecated afero_poc15_180403R

Dependencies:   UniGraphic mbed vt100

Committer:
Rhyme
Date:
Tue Apr 24 12:18:10 2018 +0000
Revision:
1:6c54dc8acf96
Parent:
0:0b6732b53bf4
to adjust with 103AT-11 with 5.1k pull-up, the constructor of 502AT-11 is called with R0=10.0, R1=5.1, B=3435, T0=298.15

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rhyme 0:0b6732b53bf4 1 #ifndef _SMTC502AT_H_
Rhyme 0:0b6732b53bf4 2 #define _SMTC502AT_H_
Rhyme 0:0b6732b53bf4 3
Rhyme 0:0b6732b53bf4 4 #include "mbed.h"
Rhyme 0:0b6732b53bf4 5
Rhyme 0:0b6732b53bf4 6 /**
Rhyme 0:0b6732b53bf4 7 * Semitec 502AT-11 temperature sensor
Rhyme 0:0b6732b53bf4 8 */
Rhyme 0:0b6732b53bf4 9
Rhyme 0:0b6732b53bf4 10 class SMTC502AT {
Rhyme 0:0b6732b53bf4 11 public:
Rhyme 0:0b6732b53bf4 12 /**
Rhyme 0:0b6732b53bf4 13 * constructor
Rhyme 0:0b6732b53bf4 14 * @param *ain AnalogIn object
Rhyme 0:0b6732b53bf4 15 * @param R0 5.0 ohm (default)
Rhyme 0:0b6732b53bf4 16 * @param R1 4.95 ohm (default)
Rhyme 0:0b6732b53bf4 17 * @param B 3324 (default)
Rhyme 0:0b6732b53bf4 18 * @param T0 298.15 (default)
Rhyme 0:0b6732b53bf4 19 */
Rhyme 0:0b6732b53bf4 20 SMTC502AT(AnalogIn *ain, float R0=5.0, float R1=4.95, float B=3324, float T0=298.15) ;
Rhyme 0:0b6732b53bf4 21
Rhyme 0:0b6732b53bf4 22 /**
Rhyme 0:0b6732b53bf4 23 * destructor
Rhyme 0:0b6732b53bf4 24 */
Rhyme 0:0b6732b53bf4 25 ~SMTC502AT(void) ;
Rhyme 0:0b6732b53bf4 26
Rhyme 0:0b6732b53bf4 27 /**
Rhyme 0:0b6732b53bf4 28 * getTemp get temperature
Rhyme 0:0b6732b53bf4 29 * @returns temperature in float format
Rhyme 0:0b6732b53bf4 30 */
Rhyme 0:0b6732b53bf4 31 float getTemp(void) ;
Rhyme 0:0b6732b53bf4 32 private:
Rhyme 0:0b6732b53bf4 33 AnalogIn *_ain ;
Rhyme 0:0b6732b53bf4 34 float _r0 ;
Rhyme 0:0b6732b53bf4 35 float _r1 ;
Rhyme 0:0b6732b53bf4 36 float _b ;
Rhyme 0:0b6732b53bf4 37 float _t0 ;
Rhyme 0:0b6732b53bf4 38 } ;
Rhyme 0:0b6732b53bf4 39
Rhyme 0:0b6732b53bf4 40 #endif /* _SMTC502AT_H_ */