00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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