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

Revision:
3:6d5e16097db0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Signals/sync.cpp	Wed Dec 07 09:16:38 2016 +0000
@@ -0,0 +1,20 @@
+#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);
+  }
+}
\ No newline at end of file