00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef DB_DTT768_H
00023 #define DB_DTT768_H
00024
00025 #include <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