This is the vcdMaker demo project. See http://vcdmaker.org for details. vcdMaker is supposed to help engineers to debug their applications and systems. It transforms text log files into the VCD format which can be easily displayed as a waveform. Use the mbed serial logger at 115200 baud rate.

Dependencies:   BSP_DISCO_L476VG COMPASS_DISCO_L476VG mbed vcdLogger vcdSignal

Revision:
0:936379a8793e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Signals/magnetometer.hpp	Sat Mar 05 21:16:10 2016 +0000
@@ -0,0 +1,37 @@
+/*!
+  @file magnetometer.hpp
+
+  The header of the magnetometer signal class.
+
+  @par Full Description
+  The header of the magnetometer signal class.
+
+  @if REVISION_HISTORY_INCLUDED
+  @par Edit History
+  @li [0]    wojciech.rynczuk@wp.pl    04-MAR-2016    Initial file revision.
+  @endif
+
+  @ingroup Signal
+
+  The MIT License (MIT)
+  Copyright (c) 2016 Wojciech Rynczuk
+
+*/
+
+#include "mbed.h"
+#include "signal.hpp"
+#include "COMPASS_DISCO_L476VG.h"
+
+class Magnetometer : public Signal
+{
+  public:
+  Magnetometer(const string& name, COMPASS_DISCO_L476VG &compass, Logger& logger);
+  ~Magnetometer();
+  
+  void PrintState();
+  
+  private:
+  COMPASS_DISCO_L476VG *m_pCompass;
+  int16_t  m_MagXYZ[3];
+  int16_t  m_PrevMagXYZ[3];
+};