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
Logger/serialLogger.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 | #ifndef _SERIALLOGGER_HPP_ |
ketjow | 0:9a59cffaafad | 2 | #define _SERIALLOGGER_HPP_ |
ketjow | 0:9a59cffaafad | 3 | |
ketjow | 0:9a59cffaafad | 4 | #include "mbed.h" |
ketjow | 0:9a59cffaafad | 5 | #include "logger.hpp" |
ketjow | 0:9a59cffaafad | 6 | |
ketjow | 0:9a59cffaafad | 7 | class SerialLogger : public Logger { |
ketjow | 0:9a59cffaafad | 8 | |
ketjow | 0:9a59cffaafad | 9 | public: |
ketjow | 0:9a59cffaafad | 10 | SerialLogger(uint32_t n_Lines, uint32_t n_Characters); |
ketjow | 0:9a59cffaafad | 11 | ~SerialLogger(); |
ketjow | 0:9a59cffaafad | 12 | |
ketjow | 0:9a59cffaafad | 13 | virtual void Printf(const char* line); |
ketjow | 0:9a59cffaafad | 14 | virtual void AlarmFull(); |
ketjow | 0:9a59cffaafad | 15 | virtual uint32_t StartAction(); |
ketjow | 0:9a59cffaafad | 16 | virtual uint32_t StopAction(); |
ketjow | 0:9a59cffaafad | 17 | |
ketjow | 0:9a59cffaafad | 18 | private: |
ketjow | 0:9a59cffaafad | 19 | DigitalOut* alarm; |
ketjow | 0:9a59cffaafad | 20 | DigitalOut* rec_indicator; |
ketjow | 0:9a59cffaafad | 21 | Serial* serialOut; |
ketjow | 0:9a59cffaafad | 22 | }; |
ketjow | 0:9a59cffaafad | 23 | #endif |