diff options
Diffstat (limited to 'host/lib/include/uhdlib/usrp')
-rw-r--r-- | host/lib/include/uhdlib/usrp/cores/dsp_core_utils.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/host/lib/include/uhdlib/usrp/cores/dsp_core_utils.hpp b/host/lib/include/uhdlib/usrp/cores/dsp_core_utils.hpp index 739b973cb..2632f4a1f 100644 --- a/host/lib/include/uhdlib/usrp/cores/dsp_core_utils.hpp +++ b/host/lib/include/uhdlib/usrp/cores/dsp_core_utils.hpp @@ -8,7 +8,7 @@ #ifndef INCLUDED_LIBUHD_DSP_CORE_UTILS_HPP #define INCLUDED_LIBUHD_DSP_CORE_UTILS_HPP -#include <stdint.h> +#include <tuple> /*! For a requested frequency and sampling rate, return the * correct frequency word (to set the CORDIC) and the actual frequency. @@ -20,4 +20,10 @@ void get_freq_and_freq_word( int32_t &freq_word ); +/*! For a requested frequency and sampling rate, return the + * correct frequency word (to set the CORDIC) and the actual frequency. + */ +std::tuple<double, int> get_freq_and_freq_word( + const double requested_freq, const double tick_rate); + #endif /* INCLUDED_LIBUHD_DSP_CORE_UTILS_HPP */ |