tiz

Dependencies:   TextLCD X_NUCLEO_IKS01A1 func mbed-src mbed

Fork of mas by esproj

Revision:
3:4355890e55b4
Child:
4:3fecfc9eeadd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/func/RawData.h	Sun Dec 13 16:36:36 2015 +0000
@@ -0,0 +1,39 @@
+#include "mbed.h"
+
+#ifndef __RAW_DATA_H__
+#define __RAW_DATA_H__
+
+class RawData
+{
+public:
+    time_t __time;
+    float __temp;
+    float __humi;
+    float __pressure;
+    int32_t __acc[3];
+    int32_t __gyr[3];
+    int32_t __mag[3];
+public:
+    void str_date(char *buffer);
+    void add_year_10();
+    void add_year_1();
+    void add_month();
+    void add_day();
+    void add_hour();
+    void add_min_10();
+    void add_min_1();
+    void add_sec_10();
+    void add_sec_1();
+    void str_time(char *buffer);
+    void str_temperature(char *buffer);
+    void str_humidity(char *buffer);
+    void str_pressure(char *buffer);
+    void str_altitude(char *buffer);
+    void str_magnetic(char *buffer);
+    void str_direction(char *buffer);
+private:
+    char* printDouble(char* str, double v);
+};
+
+
+#endif // __RAW_DATA_H__
\ No newline at end of file