[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] UHD Python API?
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] UHD Python API? |
Date: |
Fri, 14 Oct 2011 15:08:48 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15 |
On 10/14/2011 03:04 PM, Nowlan, Sean wrote:
> Can I use the following to get a pointer to the object instance and then
> access the C++ public get/set methods? Or does SWIG not dig that deep?
>
Swig digs as deep as you tell it to. See uhd_swig.i, each header you
want to access stuff with needs a %include.
Keep in mind that that often means you need to add more %template and
other stuff. Swig is a picky beast, I have spent many hours trying to
appease it.
> virtual uhd::usrp::dboard_iface::sptr get_dboard_iface(size_t chan = 0) = 0;
This has been swigged
> virtual uhd::usrp::multi_usrp::sptr get_device(void) = 0;
>
This has not, %include "uhd/usrp/multi_usrp.hpp" may do the trick for
most of the calls you want.
-josh