Norman James | fa2e76e | 2015-08-26 17:41:20 -0500 | [diff] [blame] | 1 | |
2 | #include <stdint.h> | ||||
3 | |||||
4 | typedef struct { | ||||
5 | gchar* name; | ||||
6 | gchar* dev; | ||||
7 | uint16_t num; | ||||
8 | gchar* direction; | ||||
9 | int fd; | ||||
10 | } GPIO; | ||||
11 | |||||
12 | |||||
13 | //gpio functions | ||||
14 | void gpio_init(GDBusConnection*, GPIO*); | ||||
15 | void gpio_close(GPIO*); | ||||
16 | int gpio_open(GPIO*); | ||||
17 | void gpio_write(GPIO*, uint8_t); | ||||
18 | void gpio_writec(GPIO*, char); | ||||
19 | void gpio_clock_cycle(GPIO*, int); | ||||
20 | uint8_t gpio_read(GPIO*); | ||||
21 | |||||
22 | |||||
23 |