USRP Hardware Driver and USRP Manual  Version: 003.009.004-0-g2b5a88bb
UHD and USRP Manual
tune_result.h
Go to the documentation of this file.
1 //
2 // Copyright 2015 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef INCLUDED_UHD_TYPES_TUNE_RESULT_H
19 #define INCLUDED_UHD_TYPES_TUNE_RESULT_H
20 
21 #include <uhd/config.h>
22 
23 #include <stdlib.h>
24 
26 
29 typedef struct {
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
48  char* pp_string_out, size_t strbuffer_len);
49 
50 #ifdef __cplusplus
51 }
53 
54 UHD_API uhd::tune_result_t uhd_tune_result_c_to_cpp(uhd_tune_result_t *tune_result_c);
55 
56 UHD_API void uhd_tune_result_cpp_to_c(const uhd::tune_result_t &tune_result_cpp,
57  uhd_tune_result_t *tune_result_c);
58 #endif
59 
60 #endif /* INCLUDED_UHD_TYPES_TUNE_RESULT_H */
Definition: tune_result.hpp:29
Stores RF and DSP tuned frequencies.
Definition: tune_result.h:29
double actual_dsp_freq
Frequency to which the CORDIC in the DSP actually tuned.
Definition: tune_result.h:39
UHD_API void uhd_tune_result_to_pp_string(uhd_tune_result_t *tune_result, char *pp_string_out, size_t strbuffer_len)
Create a pretty print representation of this tune result.
double target_dsp_freq
Frequency the CORDIC must adjust the RF.
Definition: tune_result.h:37
double actual_rf_freq
Frequency to which RF LO is actually tuned.
Definition: tune_result.h:35
#define UHD_API
Definition: config.h:66
double target_rf_freq
Target RF frequency, including RF FE offset.
Definition: tune_result.h:33
double clipped_rf_freq
Target RF frequency, clipped to be within system range.
Definition: tune_result.h:31