diff options
author | 2019-03-31 13:54:43 +0300 | |
---|---|---|
committer | 2019-03-31 13:54:43 +0300 | |
commit | e1f1b3db7cefe66613c4459d338236155e19d59f (patch) | |
tree | ef717573162bf6e9be93810cf01413b9cb3b014b /include/rin/gpio.h | |
parent | 5c843d16f0e5a0ba526620645711df14291ef758 (diff) | |
download | librin-e1f1b3db7cefe66613c4459d338236155e19d59f.tar.gz librin-e1f1b3db7cefe66613c4459d338236155e19d59f.tar.bz2 librin-e1f1b3db7cefe66613c4459d338236155e19d59f.zip |
gpio: removed due to being useless.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'include/rin/gpio.h')
-rw-r--r-- | include/rin/gpio.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/include/rin/gpio.h b/include/rin/gpio.h deleted file mode 100644 index 6e23ba4..0000000 --- a/include/rin/gpio.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * The Rin Library – gpio module - * - * Copyright (C) 2016 Gediminas Jakutis - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; version 2.1 - * of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#ifndef LIBRIN_GPIO_INCLUDED -#define LIBRIN_GPIO_INCLUDED - -#include <limits.h> -#include <time.h> - -enum rin_gpiotype { - rin_gpio_in, - rin_gpio_out, - rin_gpio_closed -}; - -struct rin_gpio_dataset { - unsigned int signalnum; - unsigned int clocknum; - struct timespec *pulseduration; - struct timespec *delay; - void *data; - size_t len; -}; - -unsigned int rin_gpio_open(const unsigned int num, const enum rin_gpiotype type); -unsigned int rin_gpio_close(const unsigned int num); -unsigned int rin_gpio_setval(const unsigned int num, const unsigned int val); -unsigned int rin_gpio_readval(const unsigned int num, unsigned int * const val); -unsigned int rin_gpio_writesequence(const struct rin_gpio_dataset * const dataset); -unsigned int rin_gpio_on(const unsigned int num); -unsigned int rin_gpio_off(const unsigned int num); -unsigned int rin_gpio_pulse(const unsigned int num, const struct timespec * const pulselen); -unsigned int rin_gpio_num_exists(const unsigned int num); -unsigned int rin_gpio_get_numcount(void); -unsigned int rin_gpio_get_pincount(void); -unsigned int rin_gpio_pin_to_num(const unsigned int pin); -unsigned int rin_gpio_num_to_pin(const unsigned int num); - -#endif /* LIBRIN_GPIO_INCLUDED */ |