First draft HMC5883 magnetometer sensor using physical quantities, outputting via serial port using std::cout on mbed os 5

Revision:
3:2834be4e10ef
Parent:
2:9ffb2f18756b
Child:
8:c5dc1ce10722
diff -r 9ffb2f18756b -r 2834be4e10ef hmc5883.h
--- a/hmc5883.h	Tue Mar 24 15:21:34 2020 +0000
+++ b/hmc5883.h	Tue Mar 24 22:43:44 2020 +0000
@@ -1,3 +1,5 @@
+#ifndef SKYSCRAPER_MBED_HMC5883_H_INCLUDED
+#define SKYSCRAPER_MBED_HMC5883_H_INCLUDED
 
 #include <quan/out/magnetic_flux_density.hpp>
 #include <quan/three_d/out/vect.hpp>
@@ -28,6 +30,8 @@
 // probably remove and decide how to do this behind the scenes
 // in concert with mag_set_data_rate
 bool mag_set_continuous_measurement_mode();
+
+// could rename to start single_measurement?
 bool mag_set_single_measurement_mode();
 
 bool mag_do_single_measurement(
@@ -44,3 +48,6 @@
 bool mag_data_locked();
 
 bool mag_read(quan::three_d::vect<quan::magnetic_flux_density::uT> & v);
+
+#endif
+