From 8dd603c8036f4eafd440ac14234d42d6c5eaefab Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Wed, 19 Sep 2012 11:01:31 -0400 Subject: add gpio bit read function --- bus.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bus.h') 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_ */ -- cgit