diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-02-25 16:34:03 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-02-25 20:20:51 +0100 |
commit | fd1e2f8fc1b481b1f0c80798172a601a507914f3 (patch) | |
tree | 57bb9edc5002adccedc25ac5f3108ab2607dd316 /host/lib/usrp/b200/b200_impl.cpp | |
parent | a8caec5f93976c081d488118f53a72dca49efdf6 (diff) | |
download | uhd-fd1e2f8fc1b481b1f0c80798172a601a507914f3.tar.gz uhd-fd1e2f8fc1b481b1f0c80798172a601a507914f3.tar.bz2 uhd-fd1e2f8fc1b481b1f0c80798172a601a507914f3.zip |
b200: Added channel mapping capabilities
Diffstat (limited to 'host/lib/usrp/b200/b200_impl.cpp')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 74e61143b..66df1f3bc 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -1,5 +1,5 @@ // -// Copyright 2012-2013 Ettus Research LLC +// Copyright 2012-2014 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -373,12 +373,15 @@ b200_impl::b200_impl(const device_addr_t &device_addr) //////////////////////////////////////////////////////////////////// // create frontend mapping //////////////////////////////////////////////////////////////////// + std::vector<size_t> default_map(2, 0); default_map[1] = 1; // Set this to A->0 B->1 even if there's only A + _tree->create<std::vector<size_t> >(mb_path / "rx_chan_dsp_mapping").set(default_map); + _tree->create<std::vector<size_t> >(mb_path / "tx_chan_dsp_mapping").set(default_map); _tree->create<subdev_spec_t>(mb_path / "rx_subdev_spec") .set(subdev_spec_t()) - .subscribe(boost::bind(&b200_impl::update_rx_subdev_spec, this, _1)); + .subscribe(boost::bind(&b200_impl::update_subdev_spec, this, "rx", _1)); _tree->create<subdev_spec_t>(mb_path / "tx_subdev_spec") .set(subdev_spec_t()) - .subscribe(boost::bind(&b200_impl::update_tx_subdev_spec, this, _1)); + .subscribe(boost::bind(&b200_impl::update_subdev_spec, this, "tx", _1)); //////////////////////////////////////////////////////////////////// // setup radio control |