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_TV_RX_H 00023 #define DB_TV_RX_H 00024 00025 #include <usrp/db_base.h> 00026 00027 class db_tv_rx : public db_base 00028 { 00029 private: 00030 void _set_rfagc(float gain); 00031 void _set_ifagc(float gain); 00032 void _set_pga(float pga_gain); 00033 00034 int d_i2c_addr; 00035 double d_first_IF, d_second_IF; 00036 int d_reference_divisor; 00037 bool d_fast_tuning; 00038 bool d_inverted; 00039 00040 public: 00041 db_tv_rx(usrp_basic_sptr usrp, int which, 00042 double first_IF, double second_IF); 00043 ~db_tv_rx(); 00044 00045 float gain_min(); 00046 float gain_max(); 00047 float gain_db_per_step(); 00048 double freq_min(); 00049 double freq_max(); 00050 struct freq_result_t set_freq(double target_freq); 00051 bool set_gain(float gain); 00052 bool is_quadrature(); 00053 bool spectrum_inverted(); 00054 }; 00055 00056 #endif