airspy_gpiodir(1) reconfigure GPIO Direction


The Airspy is a tiny and efficient software defined radio receiver.

WARNING this tool reconfigures AirSpy GPIO Direction IN/OUT and can destroy GPIO/MCU in case of mistake




-p, --port_no <p>: set port number<p>[0,7] for subsequent read/write operations
-n, --pin_no <n>: set pin number<n>[0,31] for subsequent read/write operations
-r, --read: read port number/pin number direction specified by last -n argument, or all port/pin
-w, --write <v>: write value port direction specified by last -n argument with value<v>[0,1]
[-s serial_number_64bits]: Open board with specified 64bits serial number.


<command> -p 0 -n 12 -r # reads gpio port direction from port 0 pin number 12
<command> -r # reads gpio direction all pins on all ports
<command> -p 0 -n 10 -w 1 # writes gpio direction port 0 pin number 10 with 1(output) decimal


This manual page was written by Maitland Bottoms for the Debian project (but may be used by others).


Copyright (c) 2015 A. Maitland Bottoms <[email protected]>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

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 General Public License for more details.