|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] Accessing the uhd_usrp object |
Date: | Thu, 14 Nov 2013 17:43:53 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
Hi Ranga, either you're seriously astray or I don't understand what you want. This is C++ running on an operating system with segmentation. There are *no* globally visibly objects, there is only calls to the operating systems / IPC to communicate with other processes and objects that live within your own process that you can directly address. Ok, there's shared memory, but you can't move a uhd_source to shared pages; that doesn't make sense. When you're in the same process, it's easy just to pass pointers around. They are objects as everything else. Let's assume you construct a flowgraph like top_block->connect(uhd_source, processing, mac, sink) then you can just do mac->set_uhd_src_pointer(uhd_source) which would be something like mymac::set_uhd_src_pointer(uhd_source::sptr src) { _uhd_src_sptr = src; } which enables you to just _uhd_src_sptr->set_center_frequency(20000); inside your class. Greetings, Marcus On 14.11.2013 16:53, M. Ranganathan
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |