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
Signals/magnetometer.hpp@0:9a59cffaafad, 2016-02-12 (annotated)
- Committer:
- ketjow
- Date:
- Fri Feb 12 21:38:04 2016 +0000
- Revision:
- 0:9a59cffaafad
- Child:
- 1:446154224f92
vcdMaker demo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ketjow | 0:9a59cffaafad | 1 | #include "mbed.h" |
ketjow | 0:9a59cffaafad | 2 | #include "signal.hpp" |
ketjow | 0:9a59cffaafad | 3 | #include "MAG3110.h" |
ketjow | 0:9a59cffaafad | 4 | |
ketjow | 0:9a59cffaafad | 5 | class Magnetometer : public Signal |
ketjow | 0:9a59cffaafad | 6 | { |
ketjow | 0:9a59cffaafad | 7 | public: |
ketjow | 0:9a59cffaafad | 8 | Magnetometer(const string& name, Logger& logger); |
ketjow | 0:9a59cffaafad | 9 | ~Magnetometer(); |
ketjow | 0:9a59cffaafad | 10 | |
ketjow | 0:9a59cffaafad | 11 | void PrintState(); |
ketjow | 0:9a59cffaafad | 12 | |
ketjow | 0:9a59cffaafad | 13 | private: |
ketjow | 0:9a59cffaafad | 14 | MAG3110* m_Magnetometer; |
ketjow | 0:9a59cffaafad | 15 | int32_t m_MagXPrev; |
ketjow | 0:9a59cffaafad | 16 | int32_t m_MagYPrev; |
ketjow | 0:9a59cffaafad | 17 | int32_t m_MagZPrev; |
ketjow | 0:9a59cffaafad | 18 | int32_t m_MagXCurr; |
ketjow | 0:9a59cffaafad | 19 | int32_t m_MagYCurr; |
ketjow | 0:9a59cffaafad | 20 | int32_t m_MagZCurr; |
ketjow | 0:9a59cffaafad | 21 | }; |