summaryrefslogtreecommitdiff
path: root/logic.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic.h')
-rw-r--r--logic.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/logic.h b/logic.h
new file mode 100644
index 0000000..95d2663
--- /dev/null
+++ b/logic.h
@@ -0,0 +1,18 @@
+#ifndef LOGIC_H
+#define LOGIC_H
+
+enum BINARY {
+ LOGIC_HIGH,
+ LOGIC_LOW
+};
+
+enum BINARY logic_not(enum BINARY input);
+enum BINARY logic_and(enum BINARY a, enum BINARY b);
+enum BINARY logic_or(enum BINARY a, enum BINARY b);
+enum BINARY logic_xor(enum BINARY a, enum BINARY b);
+enum BINARY logic_nand(enum BINARY a, enum BINARY b);
+enum BINARY logic_nor(enum BINARY a, enum BINARY b);
+
+void logic_test();
+
+#endif