Loading...
Searching...
No Matches
gpiodev_linux.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Benjamin Valentin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
38
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
56int gpio_linux_setup(const char* device);
57
64
65#ifdef __cplusplus
66}
67#endif
68
void gpio_linux_teardown(void)
shutdown GPIO subsystem
int gpio_linux_setup(const char *device)
register /dev/gpiochip* device to be used for GPIO