GNU Radio 3.3.0 C++ API
|
00001 /* -*- c++ -*- */ 00002 // 00003 // Copyright 2008,2009 Free Software Foundation, Inc. 00004 // 00005 // This file is part of GNU Radio 00006 // 00007 // GNU Radio is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation; either asversion 3, or (at your option) 00010 // any later version. 00011 // 00012 // GNU Radio is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with GNU Radio; see the file COPYING. If not, write to 00019 // the Free Software Foundation, Inc., 51 Franklin Street, 00020 // Boston, MA 02110-1301, USA. 00021 00022 #ifndef DB_DTT768_H 00023 #define DB_DTT768_H 00024 00025 #include <usrp/db_base.h> 00026 #include <boost/shared_ptr.hpp> 00027 00028 class db_dtt768 : public db_base 00029 { 00030 public: 00031 db_dtt768(usrp_basic_sptr usrp, int which); 00032 ~db_dtt768(); 00033 00034 float gain_min(); 00035 float gain_max(); 00036 float gain_db_per_step(); 00037 bool set_gain(float gain); 00038 00039 double freq_min(); 00040 double freq_max(); 00041 struct freq_result_t set_freq(double target_freq); 00042 00043 bool is_quadrature(); 00044 bool spectrum_inverted(); 00045 bool set_bw(float bw); 00046 00047 private: 00048 void _set_rfagc(float gain); 00049 void _set_ifagc(float gain); 00050 void _set_pga(float pga_gain); 00051 00052 int d_i2c_addr; 00053 float d_bw, d_freq, d_IF, d_f_ref; 00054 bool d_inverted; 00055 }; 00056 00057 #endif