GNU Radio 3.3.0 C++ API
|
00001 /* -*- c++ -*- */ 00002 /* 00003 * Copyright 2008 Free Software Foundation, Inc. 00004 * 00005 * This program is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #ifndef INCLUDED_USRP2_TUNE_RESULT_H 00020 #define INCLUDED_USRP2_TUNE_RESULT_H 00021 00022 namespace usrp2 { 00023 00024 /* 00025 * \ingroup usrp2 00026 */ 00027 class tune_result 00028 { 00029 public: 00030 // RF frequency that corresponds to DC in the IF 00031 double baseband_freq; 00032 00033 // frequency programmed into the DDC/DUC 00034 double dxc_freq; 00035 00036 // residual frequency (typically < 0.01 Hz) 00037 double residual_freq; 00038 00039 // is the spectrum inverted? 00040 bool spectrum_inverted; 00041 00042 tune_result(double baseband=0, double dxc=0, double residual=0, bool inverted=false) 00043 : baseband_freq(baseband), dxc_freq(dxc), 00044 residual_freq(residual), spectrum_inverted(inverted) {} 00045 }; 00046 00047 } // namespace usrp2 00048 00049 #endif /* INCLUDED_USRP2_TUNE_RESULT_H */