summaryrefslogtreecommitdiff
path: root/bus.h
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-19 11:01:31 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-19 11:01:31 -0400
commit8dd603c8036f4eafd440ac14234d42d6c5eaefab (patch)
tree40a2f46f4725354d2ebe0c0c5113b26532fc07fc /bus.h
parent7a9dfe8a49b21c82742e13c43670a92de2380871 (diff)
add gpio bit read function
Diffstat (limited to 'bus.h')
-rw-r--r--bus.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bus.h b/bus.h
index 6bb3e83..f13f203 100644
--- a/bus.h
+++ b/bus.h
@@ -27,9 +27,13 @@
#define GPMCACCESSTIME 0x07
void bus_init(void); // call this before doing anything
+
+int bus_getpin(int pin);
void bus_setpin(int pin, int value); // set the value of a pin
+
void bus_writebyte(uint8_t address, uint8_t data); // write a byte to the bus
uint8_t bus_readbyte(uint8_t address); // read a pin from the bus
+
void bus_shutdown(void); // shutdown the bus
#endif /* BUS_H_ */