Imported Upstream version 3.2.2
[debian/gnuradio] / usrp / host / lib / legacy / db_dtt754.h
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 asversion 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
18 // along with GNU Radio; see the file COPYING.  If not, write to
19 // the Free Software Foundation, Inc., 51 Franklin Street,
20 // Boston, MA 02110-1301, USA.
21
22 #ifndef DB_DTT754_H
23 #define DB_DTT754_H
24
25 #include <db_base.h>
26 #include <boost/shared_ptr.hpp>
27
28 class db_dtt754 : public db_base
29 {
30 public:
31   db_dtt754(usrp_basic_sptr usrp, int which);
32   ~db_dtt754();
33   
34   float gain_min();
35   float gain_max();
36   float gain_db_per_step();
37   bool  set_gain(float gain);
38
39   double freq_min();
40   double freq_max();
41   struct freq_result_t set_freq(double target_freq);
42   
43   bool is_quadrature();
44   bool spectrum_inverted();
45   bool set_bw(float bw);
46
47 private:
48   void _set_rfagc(float gain);
49   void _set_ifagc(float gain);
50   void _set_pga(float pga_gain);
51
52   int d_i2c_addr;
53   float d_bw, d_freq, d_IF, d_f_ref;
54   bool d_inverted;
55 };
56
57 #endif