diff options
author | Julian Arnold <julian.arnold@ettus.com> | 2014-10-21 09:04:20 -0700 |
---|---|---|
committer | Julian Arnold <julian.arnold@ettus.com> | 2014-10-21 09:04:20 -0700 |
commit | 9106143b885c9d226d83de187427359a361a74fb (patch) | |
tree | e2ebea18fc4fef49a9d205bef8834835efe4a5b3 | |
parent | c160972eab9ddce5a466b4893ab95d680fc9e19b (diff) | |
download | uhd-9106143b885c9d226d83de187427359a361a74fb.tar.gz uhd-9106143b885c9d226d83de187427359a361a74fb.tar.bz2 uhd-9106143b885c9d226d83de187427359a361a74fb.zip |
MISO and SIMO configurations no longer allowed
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 3ff502858..da06e12b4 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -974,6 +974,11 @@ void b200_impl::update_enables(void) const size_t num_tx = (enb_tx1?1:0) + (enb_tx2?1:0); const bool mimo = num_rx == 2 or num_tx == 2; + if ((num_rx + num_tx) == 3) + { + throw uhd::runtime_error("b200: 2 RX 1 TX and 1 RX 2 TX configurations not possible"); + } + //setup the active chains in the codec _codec_ctrl->set_active_chains(enb_tx1, enb_tx2, enb_rx1, enb_rx2); if ((num_rx + num_tx) == 0) _codec_ctrl->set_active_chains(true, false, true, false); //enable something |