808
Dependents: Chromatograph_Mobile
lm35.h@1:2c55cbb1e270, 2020-08-08 (annotated)
- Committer:
- nikmaos
- Date:
- Sat Aug 08 18:22:59 2020 +0000
- Revision:
- 1:2c55cbb1e270
- Parent:
- 0:48636371d2d3
808
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vitlog | 0:48636371d2d3 | 1 | #ifndef _LM35_H /* Guard against multiple inclusion */ |
vitlog | 0:48636371d2d3 | 2 | #define _LM35_H |
vitlog | 0:48636371d2d3 | 3 | #include "PerifConfig.h" |
vitlog | 0:48636371d2d3 | 4 | #define KF 1000 |
vitlog | 0:48636371d2d3 | 5 | typedef struct { |
vitlog | 0:48636371d2d3 | 6 | //фильтрованное значение температуры |
vitlog | 0:48636371d2d3 | 7 | float temp; |
nikmaos | 1:2c55cbb1e270 | 8 | float volts; |
vitlog | 0:48636371d2d3 | 9 | uint8_t ready; |
vitlog | 0:48636371d2d3 | 10 | } LM35_t; |
vitlog | 0:48636371d2d3 | 11 | extern LM35_t LM35_0; |
vitlog | 0:48636371d2d3 | 12 | void LM35_start(float per); |
vitlog | 0:48636371d2d3 | 13 | void LM35_stop(void); |
vitlog | 0:48636371d2d3 | 14 | #endif |