Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: Libs/Temperature/Temperature.h
- Revision:
- 30:91af74a299e1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Libs/Temperature/Temperature.h Thu Nov 13 10:53:10 2014 +0000
@@ -0,0 +1,30 @@
+#ifndef __TEMPERATURE_H
+#define __TEMPERATURE_H
+
+#include "mbed.h"
+
+typedef struct LOOKUP_TABLE_T {
+ float *input;
+ float *output;
+ int numEntries;
+} LOOKUP_TABLE_T;
+
+extern LOOKUP_TABLE_T NXFT15XH103_TABLE;
+
+class Temperature {
+public:
+ Temperature(LOOKUP_TABLE_T *_table, PinName _pin);
+ float readRaw();
+ float read();
+#ifdef MBED_OPERATORS
+ operator float() {
+ return read();
+ }
+#endif
+private:
+ float convert(float reading);
+ LOOKUP_TABLE_T *table;
+ AnalogIn pin;
+};
+
+#endif
\ No newline at end of file
