diff options
author | Josh Blum <josh@joshknows.com> | 2010-09-23 19:05:10 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-09-23 19:05:10 -0700 |
commit | 1fe3790faed05b92ca4ad3a27da6eb23632d7e57 (patch) | |
tree | a0cacc33e46459853e7d51613bcf393fed54f271 /gr-uhd/lib/uhd_single_usrp_source.cc | |
parent | 2831c9313d09685090cea531a177469b57792c9a (diff) |
uhd: multi channel single usrp source and sink working
Diffstat (limited to 'gr-uhd/lib/uhd_single_usrp_source.cc')
-rw-r--r-- | gr-uhd/lib/uhd_single_usrp_source.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-uhd/lib/uhd_single_usrp_source.cc b/gr-uhd/lib/uhd_single_usrp_source.cc index 13e4d6d43c..5da4385b25 100644 --- a/gr-uhd/lib/uhd_single_usrp_source.cc +++ b/gr-uhd/lib/uhd_single_usrp_source.cc @@ -39,8 +39,9 @@ class uhd_single_usrp_source_impl : public uhd_single_usrp_source{ public: uhd_single_usrp_source_impl( const std::string &args, - const uhd::io_type_t &type - ) : uhd_single_usrp_source(gr_make_io_signature(1, 1, type.size)), _type(type) + const uhd::io_type_t &type, + size_t num_channels + ) : uhd_single_usrp_source(gr_make_io_signature(num_channels, num_channels, type.size)), _type(type) { _dev = uhd::usrp::single_usrp::make(args); set_streaming(false); @@ -157,9 +158,10 @@ private: **********************************************************************/ boost::shared_ptr<uhd_single_usrp_source> uhd_make_single_usrp_source( const std::string &args, - const uhd::io_type_t::tid_t &type + const uhd::io_type_t::tid_t &type, + size_t num_channels ){ return boost::shared_ptr<uhd_single_usrp_source>( - new uhd_single_usrp_source_impl(args, type) + new uhd_single_usrp_source_impl(args, type, num_channels) ); } |