aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e/dboard_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-18 00:53:58 +0000
committerJosh Blum <josh@joshknows.com>2010-08-18 00:53:58 +0000
commitc3fc2010bffbb74414c029910347c6aa28c2b8d4 (patch)
tree10b447af83c0c1e8a8f3d88f6b197544919cc409 /host/lib/usrp/usrp_e/dboard_impl.cpp
parent1e28ae518de1268efa370eb8b4b206b7d5a49b03 (diff)
downloaduhd-c3fc2010bffbb74414c029910347c6aa28c2b8d4.tar.gz
uhd-c3fc2010bffbb74414c029910347c6aa28c2b8d4.tar.bz2
uhd-c3fc2010bffbb74414c029910347c6aa28c2b8d4.zip
usrp-e: added gain group property
Diffstat (limited to 'host/lib/usrp/usrp_e/dboard_impl.cpp')
-rw-r--r--host/lib/usrp/usrp_e/dboard_impl.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp_e/dboard_impl.cpp b/host/lib/usrp/usrp_e/dboard_impl.cpp
index 79ff54c9d..d4a27cb72 100644
--- a/host/lib/usrp/usrp_e/dboard_impl.cpp
+++ b/host/lib/usrp/usrp_e/dboard_impl.cpp
@@ -20,6 +20,7 @@
#include <uhd/utils/assert.hpp>
#include <uhd/usrp/dboard_props.hpp>
#include <uhd/usrp/subdev_props.hpp>
+#include <uhd/usrp/misc_utils.hpp>
#include <boost/bind.hpp>
#include <iostream>
@@ -84,6 +85,14 @@ void usrp_e_impl::rx_dboard_get(const wax::obj &key_, wax::obj &val){
val = _rx_codec_proxy->get_link();
return;
+ case DBOARD_PROP_GAIN_GROUP:
+ val = make_gain_group(
+ _dboard_manager->get_rx_subdev(key.name),
+ _rx_codec_proxy->get_link(),
+ GAIN_GROUP_POLICY_RX
+ );
+ return;
+
default: UHD_THROW_PROP_GET_ERROR();
}
}
@@ -134,6 +143,14 @@ void usrp_e_impl::tx_dboard_get(const wax::obj &key_, wax::obj &val){
val = _tx_codec_proxy->get_link();
return;
+ case DBOARD_PROP_GAIN_GROUP:
+ val = make_gain_group(
+ _dboard_manager->get_tx_subdev(key.name),
+ _tx_codec_proxy->get_link(),
+ GAIN_GROUP_POLICY_TX
+ );
+ return;
+
default: UHD_THROW_PROP_GET_ERROR();
}
}