diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-11 19:12:41 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-11-11 19:12:41 -0800 |
commit | f22303e6e4a2f425d588439cc05f8b04ef79c1d2 (patch) | |
tree | 5409478e64459cb207b863ee1dac42091b5eca3a /host | |
parent | 258d9bb45fbe7a0fa246f860eee7bf3e3b978fe3 (diff) | |
download | uhd-f22303e6e4a2f425d588439cc05f8b04ef79c1d2.tar.gz uhd-f22303e6e4a2f425d588439cc05f8b04ef79c1d2.tar.bz2 uhd-f22303e6e4a2f425d588439cc05f8b04ef79c1d2.zip |
uhd: fixed ranges stuff, export symbols and use doubles not iterators...
Diffstat (limited to 'host')
-rw-r--r-- | host/include/uhd/types/ranges.hpp | 6 | ||||
-rw-r--r-- | host/lib/usrp/dboard/db_unknown.cpp | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/host/include/uhd/types/ranges.hpp b/host/include/uhd/types/ranges.hpp index 206c64726..c10c36ccf 100644 --- a/host/include/uhd/types/ranges.hpp +++ b/host/include/uhd/types/ranges.hpp @@ -103,9 +103,15 @@ namespace uhd{ }; + //! export a symbol for the gain range type + template struct UHD_API meta_range_t<float>; typedef meta_range_t<float> gain_range_t; + + //! export a symbol for the freq range type + template struct UHD_API meta_range_t<double>; typedef meta_range_t<double> freq_range_t; + } //namespace uhd #include <uhd/types/ranges.ipp> diff --git a/host/lib/usrp/dboard/db_unknown.cpp b/host/lib/usrp/dboard/db_unknown.cpp index d0359d124..168e1971c 100644 --- a/host/lib/usrp/dboard/db_unknown.cpp +++ b/host/lib/usrp/dboard/db_unknown.cpp @@ -131,7 +131,7 @@ void unknown_rx::rx_get(const wax::obj &key_, wax::obj &val){ return; case SUBDEV_PROP_FREQ_RANGE: - val = freq_range_t(0, 0); + val = freq_range_t(0.0, 0.0); return; case SUBDEV_PROP_ANTENNA: @@ -233,7 +233,7 @@ void unknown_tx::tx_get(const wax::obj &key_, wax::obj &val){ return; case SUBDEV_PROP_FREQ_RANGE: - val = freq_range_t(0, 0); + val = freq_range_t(0.0, 0.0); return; case SUBDEV_PROP_ANTENNA: |