root / usrp / host / lib / legacy / usrp_tune_result.h @ 72c625f7
History | View | Annotate | Download (1.4 kB)
| 1 | /* -*- c++ -*- */
|
|---|---|
| 2 | /*
|
| 3 | * Copyright 2008 Free Software Foundation, Inc. |
| 4 | * |
| 5 | * This file is part of GNU Radio |
| 6 | * |
| 7 | * GNU Radio is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 3, or (at your option) |
| 10 | * any later version. |
| 11 | * |
| 12 | * GNU Radio is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | */ |
| 21 | #ifndef INCLUDED_USRP_TUNE_RESULT_H
|
| 22 | #define INCLUDED_USRP_TUNE_RESULT_H
|
| 23 | |
| 24 | class usrp_tune_result |
| 25 | {
|
| 26 | public:
|
| 27 | // RF frequency that corresponds to DC in the IF
|
| 28 | double baseband_freq;
|
| 29 | |
| 30 | // frequency programmed into the DDC/DUC
|
| 31 | double dxc_freq;
|
| 32 | |
| 33 | // residual frequency (typically < 0.01 Hz)
|
| 34 | double residual_freq;
|
| 35 | |
| 36 | // is the spectrum inverted?
|
| 37 | bool inverted;
|
| 38 | |
| 39 | usrp_tune_result(double baseband=0, double dxc=0, double residual=0, bool _inverted=false) |
| 40 | : baseband_freq(baseband), dxc_freq(dxc), |
| 41 | residual_freq(residual), inverted(_inverted) {}
|
| 42 | }; |
| 43 | |
| 44 | #endif /* INCLUDED_USRP_TUNE_RESULT_H */ |