aboutsummaryrefslogtreecommitdiff
path: root/SignalLevel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SignalLevel.cpp')
-rw-r--r--SignalLevel.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/SignalLevel.cpp b/SignalLevel.cpp
new file mode 100644
index 0000000..daba33c
--- /dev/null
+++ b/SignalLevel.cpp
@@ -0,0 +1,9 @@
+#include "SignalLevel.h"
+
+std::string std::to_string(SignalLevel level) {
+ if (level == HIGH) return "HIGH";
+ if (level == LOW) return "LOW";
+ if (level == UNDEFINED) return "UNDEFINED";
+ return "???";
+}
+