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/sync.cpp
- Committer:
- ketjow
- Date:
- 2016-12-07
- Revision:
- 3:6d5e16097db0
File content as of revision 3:6d5e16097db0:
#include "sync.hpp" Sync::Sync(const string& name, const PinName pin, Logger& logger) : DigitalIn(pin), Signal(name,1,logger) { } void Sync::PrintState() { string suffix(""); int32_t time_ref = 0; if (read()) { /* Do nothing */ } else { string msg("Sync triggered"); PrintEvent(msg, time_ref); } }