/* -*- c++ -*- */ /* * Copyright 2010-2011 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your option) * any later version. * * GNU Radio is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU Radio; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, * Boston, MA 02110-1301, USA. */ // Defined during configure; avoids trying to locate // header files if UHD was not installed. #ifdef GR_HAVE_UHD #define GR_UHD_API //suppress 319. No access specifier given for base class name (ignored). #pragma SWIG nowarn=319 //////////////////////////////////////////////////////////////////////// // standard includes //////////////////////////////////////////////////////////////////////// %include "gnuradio.i" //////////////////////////////////////////////////////////////////////// // block headers //////////////////////////////////////////////////////////////////////// %{ #include #include #include %} //////////////////////////////////////////////////////////////////////// // used types //////////////////////////////////////////////////////////////////////// %template(string_vector_t) std::vector; %include %include %ignore uhd::dict::operator[]; //ignore warnings about %extend %include %template(string_string_dict_t) uhd::dict; //define after dict %include %include %template(range_vector_t) std::vector; //define before range %include %include %include %include %include %include %include %template(device_addr_vector_t) std::vector; %include //////////////////////////////////////////////////////////////////////// // swig dboard_iface for python access //////////////////////////////////////////////////////////////////////// %include stdint.i %include %template(byte_vector_t) std::vector; %include %template(dboard_iface_sptr) boost::shared_ptr; //////////////////////////////////////////////////////////////////////// // block magic //////////////////////////////////////////////////////////////////////// GR_SWIG_BLOCK_MAGIC(uhd,usrp_source) %include GR_SWIG_BLOCK_MAGIC(uhd,usrp_sink) %include GR_SWIG_BLOCK_MAGIC(uhd,amsg_source) %include //////////////////////////////////////////////////////////////////////// // helpful constants //////////////////////////////////////////////////////////////////////// %{ static const size_t ALL_MBOARDS = uhd::usrp::multi_usrp::ALL_MBOARDS; %} static const size_t ALL_MBOARDS; #if SWIGGUILE %scheme %{ (load-extension-global "libguile-gnuradio-uhd_swig" "scm_init_gnuradio_uhd_swig_module") %} %goops %{ (use-modules (gnuradio gnuradio_core_runtime)) %} #endif /* SWIGGUILE */ #endif /* GR_HAVE_UHD */