Temp Publish

Revision:
0:4ccd12e1d789
diff -r 000000000000 -r 4ccd12e1d789 Sample.hpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sample.hpp	Tue Jan 08 16:21:39 2019 +0000
@@ -0,0 +1,22 @@
+/*------------------------------------------------------------------------------
+Creator : Joel Pallent
+Date : 07/12/2018
+Module : ELEC351
+Project : ELEC351_GroupA
+Dependencies : "General.hpp" , "BME280.h" , "Terminal.cpp" , "Display.hpp"
+                and "mbed.h"
+Purpose : the purpose for this file is to initilaise the functions in Samples.cpp
+and set the sample rate for the samples to be sent to the mailbox
+------------------------------------------------------------------------------*/
+#include "General.hpp"
+#include "BME280.h"
+#include "Terminal.hpp"
+#include "Display.hpp"
+#include "cyclicalBUFFER.hpp"
+#include "mbed.h"
+
+void sample_handler(void);  // adds take_sample to event queue everytime ticker is triggered
+void take_sample(void);     // sends data to mailbox and other data paths
+void update_sampleRATE(FLOAT_32 New_sampleRATE);
+void start_sampling(bool start);
+void SampleThread(void);    // periodically calls take_sample at a constant rate of SampleRate