Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
66
void
gpio_linux_teardown
(
void
);
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* GPIODEV_LINUX_H */
gpio_linux_teardown
void gpio_linux_teardown(void)
shutdown GPIO subsystem
gpio_linux_setup
int gpio_linux_setup(const char *device)
register /dev/gpiochip* device to be used for GPIO
Generated on Thu Mar 27 2025 18:20:54 by
1.9.1