[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] GPIO setting on USRP N200 with LFTX plugged + UHD
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] GPIO setting on USRP N200 with LFTX plugged + UHD |
Date: |
Mon, 26 Sep 2011 14:45:08 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13 |
On 09/26/2011 02:32 PM, Yan Nie wrote:
> Dear all,
>
> I am using USRP N200 with LFTX and LFRX plugged + UHD to design a
> transmitter and a receiver. I am trying to toggle a GPIO pin high
> when the LFTX board is transmitting and low otherwise, which is
> similar to the io_tx_06 pin on RFX boards.
>
> From what I found, this I/O pin could be configured by _write_oe (int
> which_dboard, int value, int mask) for USRP1, though did not how to
> use write_gpio in an appropriate way in python. Any suggestion on the
> implementation of functionality above would be really appreciated!
>
>
> Have a great day!
>
With gr-uhd you can call into the dboard iface from python. That
includes USRP1 and N200.
This is the dboard iface:
http://files.ettus.com/uhd_docs/doxygen/html/classuhd_1_1usrp_1_1dboard__iface.html
-Josh