diff options
Diffstat (limited to 'src/linux/gpio.h')
-rw-r--r-- | src/linux/gpio.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/linux/gpio.h b/src/linux/gpio.h new file mode 100644 index 00000000..a2c92520 --- /dev/null +++ b/src/linux/gpio.h @@ -0,0 +1,14 @@ +#ifndef __LINUX_GPIO_H +#define __LINUX_GPIO_H + +#include <stdint.h> // uint8_t + +struct gpio_adc { + int fd; +}; +struct gpio_adc gpio_adc_setup(uint8_t pin); +uint32_t gpio_adc_sample(struct gpio_adc g); +uint16_t gpio_adc_read(struct gpio_adc g); +void gpio_adc_cancel_sample(struct gpio_adc g); + +#endif // gpio.h |