diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-09 15:16:07 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-09 15:16:07 -0700 |
commit | 55658336cf67810ab8cd7829b9a1fa86c8cd4539 (patch) | |
tree | 1cfecbb4ddfe785a7787a42be2f7df4b00983856 /host/lib/usrp/simple_usrp.cpp | |
parent | 2a87970a9ca5bf98c555ad216c551263663fedcc (diff) | |
download | uhd-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/simple_usrp.cpp')
-rw-r--r-- | host/lib/usrp/simple_usrp.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/simple_usrp.cpp b/host/lib/usrp/simple_usrp.cpp index 40b71d355..60b25a647 100644 --- a/host/lib/usrp/simple_usrp.cpp +++ b/host/lib/usrp/simple_usrp.cpp @@ -108,6 +108,10 @@ public: std::cout << "RX " << _mboard()[MBOARD_PROP_RX_SUBDEV_SPEC].as<subdev_spec_t>().to_pp_string() << std::endl; } + subdev_spec_t get_rx_subdev_spec(void){ + return _mboard()[MBOARD_PROP_RX_SUBDEV_SPEC].as<subdev_spec_t>(); + } + void set_rx_rate(double rate){ _rx_dsp()[DSP_PROP_HOST_RATE] = rate; } @@ -172,6 +176,10 @@ public: std::cout << "TX " << _mboard()[MBOARD_PROP_TX_SUBDEV_SPEC].as<subdev_spec_t>().to_pp_string() << std::endl; } + subdev_spec_t get_tx_subdev_spec(void){ + return _mboard()[MBOARD_PROP_TX_SUBDEV_SPEC].as<subdev_spec_t>(); + } + void set_tx_rate(double rate){ _tx_dsp()[DSP_PROP_HOST_RATE] = rate; } |