For Hepta-Sat Lite
HeptaTemp.h@0:f74735cb01bc, 2017-07-20 (annotated)
- Committer:
- hepta2ume
- Date:
- Thu Jul 20 02:15:14 2017 +0000
- Revision:
- 0:f74735cb01bc
- Child:
- 1:a23c2cd65379
Hepta??????;
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); |
hepta2ume | 0:f74735cb01bc | 10 | void temp_sense_u16(char* temp_u16, int *dsize); |
hepta2ume | 0:f74735cb01bc | 11 | |
hepta2ume | 0:f74735cb01bc | 12 | private: |
hepta2ume | 0:f74735cb01bc | 13 | //resistance |
hepta2ume | 0:f74735cb01bc | 14 | float R1 ; |
hepta2ume | 0:f74735cb01bc | 15 | float R2 ; |
hepta2ume | 0:f74735cb01bc | 16 | float R3; |
hepta2ume | 0:f74735cb01bc | 17 | float R4; |
hepta2ume | 0:f74735cb01bc | 18 | float R5; |
hepta2ume | 0:f74735cb01bc | 19 | float Pt; |
hepta2ume | 0:f74735cb01bc | 20 | float R_1; |
hepta2ume | 0:f74735cb01bc | 21 | float R_2; |
hepta2ume | 0:f74735cb01bc | 22 | //current |
hepta2ume | 0:f74735cb01bc | 23 | float I; |
hepta2ume | 0:f74735cb01bc | 24 | //voltage |
hepta2ume | 0:f74735cb01bc | 25 | float Vref; |
hepta2ume | 0:f74735cb01bc | 26 | |
hepta2ume | 0:f74735cb01bc | 27 | //temperature coefficient |
hepta2ume | 0:f74735cb01bc | 28 | float ce; |
hepta2ume | 0:f74735cb01bc | 29 | |
hepta2ume | 0:f74735cb01bc | 30 | AnalogIn _pin; |
hepta2ume | 0:f74735cb01bc | 31 | |
hepta2ume | 0:f74735cb01bc | 32 | }; |
hepta2ume | 0:f74735cb01bc | 33 | |
hepta2ume | 0:f74735cb01bc | 34 | #endif |