gpiodev_linux.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Benjamin Valentin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for
6  * more details.
7  */
8 
45 #ifndef GPIODEV_LINUX_H
46 #define GPIODEV_LINUX_H
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
59 int gpio_linux_setup(const char* device);
60 
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* GPIODEV_LINUX_H */
void gpio_linux_teardown(void)
shutdown GPIO subsystem
int gpio_linux_setup(const char *device)
register /dev/gpiochip* device to be used for GPIO