GPIOCTL(1) | MidnightBSD General Commands Manual | GPIOCTL(1) |
gpioctl
— GPIO
control utility
gpioctl |
[-f ctldev]
-l [-v ] |
gpioctl |
[-f ctldev]
[-pN ] -t
pin |
gpioctl |
[-f ctldev]
[-pN ] -c
pin flag [flag ...] |
gpioctl |
[-f ctldev]
[-pN ] -n
pin pin-name |
gpioctl |
[-f ctldev]
[-pN ] pin
[0|1] |
The gpioctl
utility could be used to
manage GPIO pins from userland and list available pins.
The pin argument can either be a
pin-number or a pin-name. If
it is a number and a pin has this number as its name and you did not use
-N
or -p
, then
gpioctl
exits.
The options are as follows:
-c
pin flag [flag ...]-f
ctldev-l
-n
pin pin-name-t
pin-v
-p
-N
gpioctl -f /dev/gpioc0 -l
gpioctl -f /dev/gpioc0 12 1
gpioctl -f /dev/gpioc0 -c 12 IN
gpioctl -f /dev/gpioc0 -n 12 test
gpioctl -f /dev/gpioc0 -t test
gpioctl -f /dev/gpioc0 -pt 12
The gpioctl
utility appeared in
FreeBSD 9.0.
The gpioctl
utility and this manual page
were written by Oleksandr Tymoshenko
<gonzo@freebsd.org>.
March 11, 2016 | midnightbsd-3.1 |