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