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.
Dependencies: mbed vcdLogger vcdSignal
Diff: Signals/magnetometer.hpp
- Revision:
- 0:9a59cffaafad
- Child:
- 1:446154224f92
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Signals/magnetometer.hpp Fri Feb 12 21:38:04 2016 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "signal.hpp" +#include "MAG3110.h" + +class Magnetometer : public Signal +{ + public: + Magnetometer(const string& name, Logger& logger); + ~Magnetometer(); + + void PrintState(); + + private: + MAG3110* m_Magnetometer; + int32_t m_MagXPrev; + int32_t m_MagYPrev; + int32_t m_MagZPrev; + int32_t m_MagXCurr; + int32_t m_MagYCurr; + int32_t m_MagZCurr; +};