[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] get_gpio() help

From: Josh Blum
Subject: Re: [Discuss-gnuradio] get_gpio() help
Date: Fri, 24 Aug 2012 10:17:07 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0

On 08/24/2012 09:00 AM, Frederick Lee wrote:
> On Thu, Aug 23, 2012 at 5:54 PM, Samuel Ibarra <address@hidden> wrote:
>> Hello,
>> Thank you for your help Frederick. The problem that I am having is that I
>> don't really understand how I can get the read_gpio() value into my python
>> code. Once I get the value to my python code, then I will be able to create
>> a loop that continuously reads the pins.
>  I'm not 100% sure, but I think all c++ files has to go through SWIG in
> order to be used in python. Have you tried to importing the class?
> example: from uhd import dboard_iface   or   imort dboard_iface
> or something along those lines.
> After importing you can probably run something like:
> gpio_value = read_gpio( unit )
> and that should give you your value. Perhaps someone that know this better
> can give a more complete answer.

Thats the idea. You can call get_dboard_iface on the source or sink

This is available in python or c++ and all the same function calls
should work.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]