summaryrefslogtreecommitdiff
path: root/gr-uhd/swig
diff options
context:
space:
mode:
authorJosh Blum2010-10-18 18:29:20 -0700
committerJosh Blum2010-10-18 18:29:20 -0700
commit343cba5663d0eefdd3ee3918bef812dc1bd75508 (patch)
tree70ddc504b664cef8b6681ab8755dbe9df4af5ea9 /gr-uhd/swig
parent8c6445cb3dd2a8db361203fedf55f3efb6953635 (diff)
downloadgnuradio-343cba5663d0eefdd3ee3918bef812dc1bd75508.tar.gz
gnuradio-343cba5663d0eefdd3ee3918bef812dc1bd75508.tar.bz2
gnuradio-343cba5663d0eefdd3ee3918bef812dc1bd75508.zip
uhd: tweaked and tested multi usrp with a single channel
Diffstat (limited to 'gr-uhd/swig')
-rw-r--r--gr-uhd/swig/uhd_swig.i20
1 files changed, 20 insertions, 0 deletions
diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i
index 1631a768a..6f29f706d 100644
--- a/gr-uhd/swig/uhd_swig.i
+++ b/gr-uhd/swig/uhd_swig.i
@@ -20,6 +20,9 @@
* Boston, MA 02110-1301, USA.
*/
+////////////////////////////////////////////////////////////////////////
+// standard includes
+////////////////////////////////////////////////////////////////////////
%include "gnuradio.i"
%include "std_string.i"
%include "std_vector.i"
@@ -28,6 +31,9 @@ namespace std {
%template(StringVector) vector<string>;
}
+////////////////////////////////////////////////////////////////////////
+// block headers
+////////////////////////////////////////////////////////////////////////
%{
#include <uhd_mimo_source.h> //deprecated
#include <uhd_mimo_sink.h> //deprecated
@@ -40,6 +46,9 @@ namespace std {
#include <uhd_single_usrp_sink.h>
%}
+////////////////////////////////////////////////////////////////////////
+// used types
+////////////////////////////////////////////////////////////////////////
%include <uhd/config.hpp>
%include <uhd/types/ranges.hpp>
%include <uhd/types/tune_result.hpp>
@@ -47,6 +56,9 @@ namespace std {
%include <uhd/types/time_spec.hpp>
%include <uhd/types/clock_config.hpp>
+////////////////////////////////////////////////////////////////////////
+// block magic
+////////////////////////////////////////////////////////////////////////
GR_SWIG_BLOCK_MAGIC(uhd,mimo_source) //deprecated
%include <uhd_mimo_source.h> //deprecated
@@ -70,3 +82,11 @@ GR_SWIG_BLOCK_MAGIC(uhd,single_usrp_source)
GR_SWIG_BLOCK_MAGIC(uhd,single_usrp_sink)
%include <uhd_single_usrp_sink.h>
+
+////////////////////////////////////////////////////////////////////////
+// helpful constants
+////////////////////////////////////////////////////////////////////////
+%{
+static const size_t ALL_MBOARDS = uhd::usrp::multi_usrp::ALL_MBOARDS;
+%}
+static const size_t ALL_MBOARDS;