summaryrefslogtreecommitdiff
path: root/logic.h
blob: d791eef1c5f04cbfc7543a7eea2c8fa9418cbcbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef LOGIC_H
#define LOGIC_H

enum BINARY {
	LOGIC_HIGH,
	LOGIC_LOW
};

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