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?

virtual uhd::usrp::dboard_iface::sptr get_dboard_iface(size_t chan = 0) = 0;
virtual uhd::usrp::multi_usrp::sptr get_device(void) = 0;

Sean

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf 
Of Nowlan, Sean
Sent: Friday, October 14, 2011 6:01 PM
To: [email protected]; [email protected]
Subject: Re: [Discuss-gnuradio] UHD Python API?

Thanks for your response. I've done that, but if want to do something fancier 
like printing out daughterboard ID and device address, can I use "swigged" C++ 
calls?

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf 
Of Josh Blum
Sent: Friday, October 14, 2011 5:56 PM
To: [email protected]
Subject: Re: [Discuss-gnuradio] UHD Python API?



On 10/14/2011 02:53 PM, Nowlan, Sean wrote:
> I'm not clear on this... if it's in the UHD C++ API, does that 
> automatically mean it's available in the Python API through SWIG? The
> C++ API is fairly well documented but I haven't found a good Python
> API reference.
> 

The API for the gr-uhd source and sink blocks is "swigged" into python.
Any calls you see in the source and sink header files will also be available in 
python. You may want to start by generating some flow graphs in grc and looking 
at the generated python code.

-josh

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to