# UHD I/O Pins

**URL:** <https://www.ruby-forum.com/t/uhd-i-o-pins/222399>\
**Category:** GNU Radio\
**Created:** [August 27, 2012, 2:01pm UTC](https://www.ruby-forum.com/t/uhd-i-o-pins/222399 "2012-08-27T14:01:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 27, 2012, 2:01pm UTC](https://www.ruby-forum.com/t/uhd-i-o-pins/222399/1 "2012-08-27T14:01:57Z")

</div>

Hello,

I would like to control the io\_rx[15 - 0] pins on the basic\_rx  
daugtherboard. I am able to set them as either input or output pins by  
using  
the set\_pin\_ctrl() function. I would like to input a signal into one of  
these pins and be able to read the value. I have been reading the  
different  
daughterboard .cc files in the host directory, but I havent found any  
code  
that does this. I would greatly appreciate any help or advice on how to  
do  
this. Thank you for your time and help.

## Sam

View this message in context:  
[http://old.nabble.com/UHD-I-O-Pins-tp34332005p34332005.html](http://old.nabble.com/UHD-I-O-Pins-tp34332005p34332005.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![sibar002](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@sibar002](https://www.ruby-forum.com/u/sibar002)\
**Post date:** [August 27, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/uhd-i-o-pins/222399/2 "2012-08-27T14:05:12Z")

</div>

On 08/21/2012 03:45 PM, sibar002 wrote:

> Hello,
> 
> I would like to control the io\_rx[15 - 0] pins on the basic\_rx  
> daugtherboard. I am able to set them as either input or output pins by using  
> the set\_pin\_ctrl() function. I would like to input a signal into one of

You will need to set GPIO input  
[http://files.ettus.com/uhd\_docs/doxygen/html/classuhd\_1\_1usrp\_1\_1dboard\_\_iface.html#a377aa6291e0a77cbdf74c58762799c73](http://files.ettus.com/uhd_docs/doxygen/html/classuhd_1_1usrp_1_1dboard__iface.html#a377aa6291e0a77cbdf74c58762799c73)

And call read gpio:  
[http://files.ettus.com/uhd\_docs/doxygen/html/classuhd\_1\_1usrp\_1\_1dboard\_\_iface.html#ad623a6a90d91eb4e0e047b9da56d1a98](http://files.ettus.com/uhd_docs/doxygen/html/classuhd_1_1usrp_1_1dboard__iface.html#ad623a6a90d91eb4e0e047b9da56d1a98)
