For Hepta-Sat Lite
HeptaTemp.h@3:96c3dd85be15, 2017-09-05 (annotated)
- Committer:
- HEPTA
- Date:
- Tue Sep 05 12:47:05 2017 +0000
- Revision:
- 3:96c3dd85be15
- Parent:
- 1:a23c2cd65379
- Child:
- 7:79fba3155857
Hepta Temperature sensor;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hepta2ume | 0:f74735cb01bc | 1 | #ifndef MBED_HEPTA2TEMP_H |
hepta2ume | 0:f74735cb01bc | 2 | #define MBED_HEPTA2TEMP_H |
hepta2ume | 0:f74735cb01bc | 3 | #include"mbed.h" |
hepta2ume | 0:f74735cb01bc | 4 | |
hepta2ume | 0:f74735cb01bc | 5 | class HeptaTemp |
hepta2ume | 0:f74735cb01bc | 6 | { |
hepta2ume | 0:f74735cb01bc | 7 | public: |
hepta2ume | 0:f74735cb01bc | 8 | HeptaTemp(PinName pin); |
hepta2ume | 0:f74735cb01bc | 9 | void temp_sense(float* temp); |
HEPTA | 3:96c3dd85be15 | 10 | void temp_sense_u16(char* temp_u16); |
hepta2ume | 1:a23c2cd65379 | 11 | void temp_sensing_vol(float* voltage); |
hepta2ume | 0:f74735cb01bc | 12 | |
hepta2ume | 0:f74735cb01bc | 13 | private: |
hepta2ume | 0:f74735cb01bc | 14 | //resistance |
hepta2ume | 0:f74735cb01bc | 15 | float R1 ; |
hepta2ume | 0:f74735cb01bc | 16 | float R2 ; |
hepta2ume | 0:f74735cb01bc | 17 | float R3; |
hepta2ume | 0:f74735cb01bc | 18 | float R4; |
hepta2ume | 0:f74735cb01bc | 19 | float R5; |
hepta2ume | 0:f74735cb01bc | 20 | float Pt; |
hepta2ume | 0:f74735cb01bc | 21 | float R_1; |
hepta2ume | 0:f74735cb01bc | 22 | float R_2; |
hepta2ume | 0:f74735cb01bc | 23 | //current |
hepta2ume | 0:f74735cb01bc | 24 | float I; |
hepta2ume | 0:f74735cb01bc | 25 | //voltage |
hepta2ume | 0:f74735cb01bc | 26 | float Vref; |
hepta2ume | 0:f74735cb01bc | 27 | |
hepta2ume | 0:f74735cb01bc | 28 | //temperature coefficient |
hepta2ume | 0:f74735cb01bc | 29 | float ce; |
hepta2ume | 0:f74735cb01bc | 30 | |
hepta2ume | 0:f74735cb01bc | 31 | AnalogIn _pin; |
hepta2ume | 0:f74735cb01bc | 32 | |
hepta2ume | 0:f74735cb01bc | 33 | }; |
hepta2ume | 0:f74735cb01bc | 34 | |
hepta2ume | 0:f74735cb01bc | 35 | #endif |