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: FXOS8700Q Queue mbed-rtos mbed
Fork of Pacemaker by
Diff: dataStruct.h
- Revision:
- 16:08d5e5a3ee74
- Child:
- 30:0cb4890910cd
diff -r 3b8acee3510d -r 08d5e5a3ee74 dataStruct.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dataStruct.h Thu Nov 17 04:03:25 2016 +0000
@@ -0,0 +1,25 @@
+#pragma once
+#include "mbed.h"
+#include "hardware.h"
+#include "rtos.h"
+#include "queue.h"
+
+#define START_THREAD 1
+
+class dataStruct{
+public:
+ dataStruct(hardware*);
+ ~dataStruct();
+ queue getData();
+
+private:
+ static const int N = 13;
+ double k_streamPeriod;
+ hardware* myHardware;
+ double streamValue;
+ queue myQueue;
+ static void threadStarter(void const *p);
+ void storeData();
+ Thread thread;
+
+};
\ No newline at end of file
