aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/mimo_usrp.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-09 15:16:07 -0700
committerJosh Blum <josh@joshknows.com>2010-08-09 15:16:07 -0700
commit55658336cf67810ab8cd7829b9a1fa86c8cd4539 (patch)
tree1cfecbb4ddfe785a7787a42be2f7df4b00983856 /host/lib/usrp/mimo_usrp.cpp
parent2a87970a9ca5bf98c555ad216c551263663fedcc (diff)
downloaduhd-55658336cf67810ab8cd7829b9a1fa86c8cd4539.tar.gz
uhd-55658336cf67810ab8cd7829b9a1fa86c8cd4539.tar.bz2
uhd-55658336cf67810ab8cd7829b9a1fa86c8cd4539.zip
usrp: added api call to get the subdev spec
Diffstat (limited to 'host/lib/usrp/mimo_usrp.cpp')
-rw-r--r--host/lib/usrp/mimo_usrp.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/mimo_usrp.cpp b/host/lib/usrp/mimo_usrp.cpp
index 7965e4016..e78d38fc0 100644
--- a/host/lib/usrp/mimo_usrp.cpp
+++ b/host/lib/usrp/mimo_usrp.cpp
@@ -158,6 +158,10 @@ public:
_mboard(chan)[MBOARD_PROP_RX_SUBDEV_SPEC] = spec;
}
+ subdev_spec_t get_rx_subdev_spec(size_t chan){
+ return _mboard(chan)[MBOARD_PROP_RX_SUBDEV_SPEC].as<subdev_spec_t>();
+ }
+
void set_rx_rate_all(double rate){
std::vector<double> _actual_rates;
for (size_t chan = 0; chan < get_num_channels(); chan++){
@@ -230,6 +234,10 @@ public:
_mboard(chan)[MBOARD_PROP_TX_SUBDEV_SPEC] = spec;
}
+ subdev_spec_t get_tx_subdev_spec(size_t chan){
+ return _mboard(chan)[MBOARD_PROP_TX_SUBDEV_SPEC].as<subdev_spec_t>();
+ }
+
void set_tx_rate_all(double rate){
std::vector<double> _actual_rates;
for (size_t chan = 0; chan < get_num_channels(); chan++){