diff options
author | 2016-12-09 17:12:05 +0200 | |
---|---|---|
committer | 2016-12-09 17:12:05 +0200 | |
commit | 1f50d698583345963cbcfbb11f205ed47400137d (patch) | |
tree | 33b32f68dc2d57570b7bd0db81f86dd231061498 /include/rin | |
parent | d8b27510426e95470f9579395f50f353bd105d83 (diff) | |
download | librin-1f50d698583345963cbcfbb11f205ed47400137d.tar.gz librin-1f50d698583345963cbcfbb11f205ed47400137d.tar.bz2 librin-1f50d698583345963cbcfbb11f205ed47400137d.zip |
gpio: implement even more features.
Diffstat (limited to 'include/rin')
-rw-r--r-- | include/rin/gpio.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/rin/gpio.h b/include/rin/gpio.h index 1ca2169..2f8f305 100644 --- a/include/rin/gpio.h +++ b/include/rin/gpio.h @@ -47,7 +47,10 @@ unsigned int rin_gpio_writesequence(const struct rin_gpio_dataset * const datase 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_pin_exists(const unsigned int pin); +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 */ |