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/accelerometer.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 "MMA8451Q.h" |
ketjow | 0:9a59cffaafad | 4 | |
ketjow | 0:9a59cffaafad | 5 | class Accelerometer : public Signal |
ketjow | 0:9a59cffaafad | 6 | { |
ketjow | 0:9a59cffaafad | 7 | public: |
ketjow | 0:9a59cffaafad | 8 | Accelerometer(const string& name, Logger& logger); |
ketjow | 0:9a59cffaafad | 9 | ~Accelerometer(); |
ketjow | 0:9a59cffaafad | 10 | |
ketjow | 0:9a59cffaafad | 11 | void PrintState(); |
ketjow | 0:9a59cffaafad | 12 | |
ketjow | 0:9a59cffaafad | 13 | private: |
ketjow | 0:9a59cffaafad | 14 | MMA8451Q* m_Accelerometer; |
ketjow | 0:9a59cffaafad | 15 | float m_AccXPrev; |
ketjow | 0:9a59cffaafad | 16 | float m_AccYPrev; |
ketjow | 0:9a59cffaafad | 17 | float m_AccZPrev; |
ketjow | 0:9a59cffaafad | 18 | float m_AccXCurr; |
ketjow | 0:9a59cffaafad | 19 | float m_AccYCurr; |
ketjow | 0:9a59cffaafad | 20 | float m_AccZCurr; |
ketjow | 0:9a59cffaafad | 21 | }; |