summaryrefslogtreecommitdiff
path: root/usrp2/host/include
diff options
context:
space:
mode:
authorjcorgan2008-12-24 08:10:48 +0000
committerjcorgan2008-12-24 08:10:48 +0000
commit72c625f7e50b65dc3b642112762e9eb1d633bd42 (patch)
treeb83cbb7c9901b2d5fe6fda9dedb127c53b784e02 /usrp2/host/include
parent06e7a0313a09ee812061d855a47206ed303eac7f (diff)
downloadgnuradio-72c625f7e50b65dc3b642112762e9eb1d633bd42.tar.gz
gnuradio-72c625f7e50b65dc3b642112762e9eb1d633bd42.tar.bz2
gnuradio-72c625f7e50b65dc3b642112762e9eb1d633bd42.zip
Merged r10071:10164 from features/cppdb-test into trunk. Implements the fully native C++ API for the USRP.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10165 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/host/include')
-rw-r--r--usrp2/host/include/usrp2/tune_result.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/usrp2/host/include/usrp2/tune_result.h b/usrp2/host/include/usrp2/tune_result.h
index 6fb2a6824..9075596f4 100644
--- a/usrp2/host/include/usrp2/tune_result.h
+++ b/usrp2/host/include/usrp2/tune_result.h
@@ -16,8 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef INCLUDED_TUNE_RESULT_H
-#define INCLUDED_TUNE_RESULT_H
+#ifndef INCLUDED_USRP2_TUNE_RESULT_H
+#define INCLUDED_USRP2_TUNE_RESULT_H
namespace usrp2 {
@@ -36,10 +36,11 @@ namespace usrp2 {
// is the spectrum inverted?
bool spectrum_inverted;
- tune_result()
- : baseband_freq(0), dxc_freq(0), residual_freq(0), spectrum_inverted(false) {}
+ tune_result(double baseband=0, double dxc=0, double residual=0, bool inverted=false)
+ : baseband_freq(baseband), dxc_freq(dxc),
+ residual_freq(residual), spectrum_inverted(inverted) {}
};
} // namespace usrp2
-#endif /* INCLUDED_TUNE_RESULT_H */
+#endif /* INCLUDED_USRP2_TUNE_RESULT_H */