diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-27 16:37:08 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-27 16:37:08 -0700 |
commit | f9edd3865ca0f61a9e80fd917521b49292d5ecb1 (patch) | |
tree | 5afaf7a691dbb5849c624c8af46501ddd414be9e /host/lib/types.cpp | |
parent | 971f6de77c6b67515b5d37d748e823da155b310c (diff) | |
parent | 630c007bbbabce90ffe3578d47ad7acc187bdc30 (diff) | |
download | uhd-f9edd3865ca0f61a9e80fd917521b49292d5ecb1.tar.gz uhd-f9edd3865ca0f61a9e80fd917521b49292d5ecb1.tar.bz2 uhd-f9edd3865ca0f61a9e80fd917521b49292d5ecb1.zip |
Merge branch 'next' into flow_ctrl
Conflicts:
host/include/uhd/types/metadata.hpp
Diffstat (limited to 'host/lib/types.cpp')
-rw-r--r-- | host/lib/types.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/host/lib/types.cpp b/host/lib/types.cpp index 6aa82b012..4188568aa 100644 --- a/host/lib/types.cpp +++ b/host/lib/types.cpp @@ -17,6 +17,7 @@ #include <uhd/utils/assert.hpp> #include <uhd/types/ranges.hpp> +#include <uhd/types/tune_request.hpp> #include <uhd/types/tune_result.hpp> #include <uhd/types/clock_config.hpp> #include <uhd/types/stream_cmd.hpp> @@ -58,6 +59,26 @@ freq_range_t::freq_range_t(double min, double max): } /*********************************************************************** + * tune request + **********************************************************************/ +tune_request_t::tune_request_t(double target_freq): + target_freq(target_freq), + inter_freq_policy(POLICY_AUTO), + dsp_freq_policy(POLICY_AUTO) +{ + /* NOP */ +} + +tune_request_t::tune_request_t(double target_freq, double lo_off): + target_freq(target_freq), + inter_freq_policy(POLICY_MANUAL), + inter_freq(target_freq + lo_off), + dsp_freq_policy(POLICY_AUTO) +{ + /* NOP */ +} + +/*********************************************************************** * tune result **********************************************************************/ std::string tune_result_t::to_pp_string(void) const{ |