Changeset 9670
- Timestamp:
- 09/28/08 14:27:31
- Files:
-
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_base.cc (modified) (10 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_base.h (modified) (4 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_base.i (modified) (4 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_basic.cc (modified) (10 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_basic.h (modified) (4 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dbs_rx.cc (modified) (4 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dbs_rx.h (modified) (1 diff)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dtt754.cc (modified) (4 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dtt754.h (modified) (1 diff)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dtt768.cc (modified) (4 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dtt768.h (modified) (1 diff)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_flexrf.cc (modified) (50 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_flexrf.h (modified) (20 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_tv_rx.cc (modified) (6 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_tv_rx.h (modified) (4 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_wbx.cc (modified) (18 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_wbx.h (modified) (10 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_xcvr2450.cc (modified) (5 diffs)
- gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_xcvr2450.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_base.cc
r9656 r9670 23 23 #include <stdexcept> 24 24 25 tune_result::tune_result( float baseband, float dxc, floatresidual, bool inv)25 tune_result::tune_result(double baseband, double dxc, double residual, bool inv) 26 26 : ok(false), baseband_freq(baseband), dxc_freq(dxc), 27 27 residual_freq(residual), inverted(inv) … … 126 126 } 127 127 128 float128 double 129 129 db_base::freq_min() 130 130 { … … 132 132 } 133 133 134 float 134 double 135 135 db_base::freq_max() 136 136 { … … 139 139 140 140 struct freq_result_t 141 db_base::set_freq( floattarget_freq)141 db_base::set_freq(double target_freq) 142 142 { 143 143 // Set the frequency. 144 144 // 145 145 // @param freq: target RF frequency in Hz 146 // @type freq: float146 // @type freq: double 147 147 // 148 148 // @returns (ok, actual_baseband_freq) where: … … 223 223 224 224 void 225 db_base::set_lo_offset( floatoffset)225 db_base::set_lo_offset(double offset) 226 226 { 227 227 // Set how much LO is offset from requested frequency … … 230 230 } 231 231 232 float232 double 233 233 db_base::lo_offset() 234 234 { … … 256 256 // 257 257 258 float 258 double 259 259 db_base::_refclk_freq() 260 260 { … … 287 287 288 288 tune_result 289 db_base::tune(int chan, floattarget_freq)289 db_base::tune(int chan, double target_freq) 290 290 { 291 291 /* … … 307 307 // Set the daughterboard frequency 308 308 bool ok=true; 309 floatbaseband_freq;309 double baseband_freq; 310 310 struct freq_result_t freq = set_freq(target_freq); 311 311 ok = freq.ok; … … 343 343 344 344 // residual_freq is the offset left over because of dxc tuning step size 345 floatresidual_freq;345 double residual_freq; 346 346 if(!d_tx) { 347 347 residual_freq = dxc_freq.ddc_freq - ((usrp_standard_rx*)d_usrp)->rx_freq(chan); gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_base.h
r9656 r9670 36 36 { 37 37 public: 38 tune_result( float baseband=0, floatdxc=0,39 floatresidual=0, bool inv=0);38 tune_result(double baseband=0, double dxc=0, 39 double residual=0, bool inv=0); 40 40 ~tune_result(); 41 41 42 42 bool ok; 43 floatbaseband_freq;44 floatdxc_freq;45 floatresidual_freq;43 double baseband_freq; 44 double dxc_freq; 45 double residual_freq; 46 46 bool inverted; 47 47 }; … … 50 50 { 51 51 bool ok; 52 floatbaseband_freq;52 double baseband_freq; 53 53 }; 54 54 … … 78 78 virtual float gain_max(); 79 79 virtual float gain_db_per_step(); 80 virtual floatfreq_min();81 virtual floatfreq_max();82 virtual struct freq_result_t set_freq( floattarget_freq);80 virtual double freq_min(); 81 virtual double freq_max(); 82 virtual struct freq_result_t set_freq(double target_freq); 83 83 virtual bool set_gain(float gain); 84 84 virtual bool is_quadrature(); … … 87 87 virtual void set_enable(bool on); 88 88 virtual void set_auto_tr(bool on); 89 virtual void set_lo_offset( floatoffset);90 virtual floatlo_offset();89 virtual void set_lo_offset(double offset); 90 virtual double lo_offset(); 91 91 virtual void select_rx_antenna(int which_antenna); 92 92 93 tune_result tune(int chan, floattarget_freq);93 tune_result tune(int chan, double target_freq); 94 94 95 95 protected: 96 96 void _enable_refclk(bool enable); 97 virtual float_refclk_freq();97 virtual double _refclk_freq(); 98 98 virtual int _refclk_divisor(); 99 99 gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_base.i
r9656 r9670 31 31 { 32 32 public: 33 tune_result( float baseband=0, floatdxc=0,34 floatresidual=0, bool inv=0);33 tune_result(double baseband=0, double dxc=0, 34 double residual=0, bool inv=0); 35 35 ~tune_result(); 36 36 37 37 bool ok; 38 floatbaseband_freq;39 floatdxc_freq;40 floatresidual_freq;38 double baseband_freq; 39 double dxc_freq; 40 double residual_freq; 41 41 bool inverted; 42 42 }; … … 45 45 { 46 46 bool ok; 47 floatbaseband_freq;47 double baseband_freq; 48 48 }; 49 49 … … 61 61 float gain_max(); 62 62 float gain_db_per_step(); 63 floatfreq_min();64 floatfreq_max();65 struct freq_result_t set_freq( floattarget_freq);63 double freq_min(); 64 double freq_max(); 65 struct freq_result_t set_freq(double target_freq); 66 66 bool set_gain(float gain); 67 67 bool is_quadrature(); … … 70 70 void set_enable(bool on); 71 71 void set_auto_tr(bool on); 72 void set_lo_offset( floatoffset);73 floatlo_offset();72 void set_lo_offset(double offset); 73 double lo_offset(); 74 74 void select_rx_antenna(int which_antenna); 75 75 76 tune_result tune(int chan, floattarget_freq);76 tune_result tune(int chan, double target_freq); 77 77 }; 78 78 gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_basic.cc
r9656 r9670 44 44 } 45 45 46 float46 double 47 47 db_basic_tx::freq_min() 48 48 { … … 50 50 } 51 51 52 float52 double 53 53 db_basic_tx::freq_max() 54 54 { … … 57 57 58 58 struct freq_result_t 59 db_basic_tx::set_freq( floattarget_freq)59 db_basic_tx::set_freq(double target_freq) 60 60 { 61 61 // Set the frequency. 62 62 // 63 63 // @param freq: target RF frequency in Hz 64 // @type freq: float64 // @type freq: double 65 65 // 66 66 // @returns (ok, actual_baseband_freq) where: … … 140 140 } 141 141 142 float 142 double 143 143 db_basic_rx::freq_min() 144 144 { … … 146 146 } 147 147 148 float 148 double 149 149 db_basic_rx::freq_max() 150 150 { … … 153 153 154 154 struct freq_result_t 155 db_basic_rx::set_freq( floattarget_freq)155 db_basic_rx::set_freq(double target_freq) 156 156 { 157 157 // Set the frequency. 158 158 // 159 159 // @param freq: target RF frequency in Hz 160 // @type freq: float160 // @type freq: double 161 161 // 162 162 // @returns (ok, actual_baseband_freq) where: … … 225 225 } 226 226 227 float227 double 228 228 db_lf_tx::freq_min() 229 229 { … … 231 231 } 232 232 233 float233 double 234 234 db_lf_tx::freq_max() 235 235 { … … 255 255 } 256 256 257 float 257 double 258 258 db_lf_rx::freq_min() 259 259 { … … 261 261 } 262 262 263 float 263 double 264 264 db_lf_rx::freq_max() 265 265 { gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_basic.h
r9656 r9670 38 38 float gain_max(); 39 39 float gain_db_per_step(); 40 floatfreq_min();41 floatfreq_max();42 struct freq_result_t set_freq( floattarget_freq);40 double freq_min(); 41 double freq_max(); 42 struct freq_result_t set_freq(double target_freq); 43 43 bool set_gain(float gain); 44 44 bool is_quadrature(); … … 58 58 float gain_max(); 59 59 float gain_db_per_step(); 60 floatfreq_min();61 floatfreq_max();62 struct freq_result_t set_freq( floattarget_freq);60 double freq_min(); 61 double freq_max(); 62 struct freq_result_t set_freq(double target_freq); 63 63 bool set_gain(float gain); 64 64 bool is_quadrature(); … … 78 78 ~db_lf_rx(); 79 79 80 floatfreq_min();81 floatfreq_max();80 double freq_min(); 81 double freq_max(); 82 82 }; 83 83 … … 92 92 ~db_lf_tx(); 93 93 94 floatfreq_min();95 floatfreq_max();94 double freq_min(); 95 double freq_max(); 96 96 }; 97 97 gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dbs_rx.cc
r9656 r9670 342 342 } 343 343 344 float 344 double 345 345 db_dbs_rx::freq_min() 346 346 { … … 348 348 } 349 349 350 float 350 double 351 351 db_dbs_rx::freq_max() 352 352 { … … 355 355 356 356 struct freq_result_t 357 db_dbs_rx::set_freq( floatfreq)357 db_dbs_rx::set_freq(double freq) 358 358 { 359 359 // Set the frequency. 360 360 // 361 361 // @param freq: target RF frequency in Hz 362 // @type freq: float362 // @type freq: double 363 363 // 364 364 // @returns (ok, actual_baseband_freq) where: … … 371 371 return args; 372 372 } 373 374 floatvcofreq;373 374 double vcofreq; 375 375 if(freq<1150e6) { 376 376 _set_div2(0); gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dbs_rx.h
r9656 r9670 71 71 float gain_max(); 72 72 float gain_db_per_step(); 73 floatfreq_min();74 floatfreq_max();75 struct freq_result_t set_freq( floatfreq);73 double freq_min(); 74 double freq_max(); 75 struct freq_result_t set_freq(double freq); 76 76 bool set_gain(float gain); 77 77 bool is_quadrature(); gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dtt754.cc
r9658 r9670 190 190 } 191 191 192 float 192 double 193 193 db_dtt754::freq_min() 194 194 { … … 196 196 } 197 197 198 float 198 double 199 199 db_dtt754::freq_max() 200 200 { … … 203 203 204 204 struct freq_result_t 205 db_dtt754::set_freq( floattarget_freq)205 db_dtt754::set_freq(double target_freq) 206 206 { 207 207 /* … … 217 217 } 218 218 219 floattarget_lo_freq = target_freq + d_IF; // High side mixing219 double target_lo_freq = target_freq + d_IF; // High side mixing 220 220 221 221 int divisor = (int)(0.5+(target_lo_freq / d_f_ref)); 222 floatactual_lo_freq = d_f_ref*divisor;222 double actual_lo_freq = d_f_ref*divisor; 223 223 224 224 if((divisor & ~0x7fff) != 0) { // must be 15-bits or less gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dtt754.h
r9656 r9670 37 37 bool set_gain(float gain); 38 38 39 floatfreq_min();40 floatfreq_max();41 struct freq_result_t set_freq( floattarget_freq);39 double freq_min(); 40 double freq_max(); 41 struct freq_result_t set_freq(double target_freq); 42 42 43 43 bool is_quadrature(); gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dtt768.cc
r9658 r9670 162 162 } 163 163 164 float 164 double 165 165 db_dtt768::freq_min() 166 166 { … … 168 168 } 169 169 170 float 170 double 171 171 db_dtt768::freq_max() 172 172 { … … 175 175 176 176 struct freq_result_t 177 db_dtt768::set_freq( floattarget_freq)177 db_dtt768::set_freq(double target_freq) 178 178 { 179 179 /* … … 189 189 } 190 190 191 floattarget_lo_freq = target_freq + d_IF; // High side mixing191 double target_lo_freq = target_freq + d_IF; // High side mixing 192 192 193 193 int divisor = (int)(0.5+(target_lo_freq / d_f_ref)); 194 floatactual_lo_freq = d_f_ref*divisor;194 double actual_lo_freq = d_f_ref*divisor; 195 195 196 196 if((divisor & ~0x7fff) != 0) { // must be 15-bits or less gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_dtt768.h
r9656 r9670 37 37 bool set_gain(float gain); 38 38 39 floatfreq_min();40 floatfreq_max();41 struct freq_result_t set_freq( floattarget_freq);39 double freq_min(); 40 double freq_max(); 41 struct freq_result_t set_freq(double target_freq); 42 42 43 43 bool is_quadrature(); gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_flexrf.cc
r9656 r9670 164 164 165 165 bool 166 flexrf_base::_compute_regs( floatfreq, int &retR, int &retcontrol,167 int &retN, float&retfreq)166 flexrf_base::_compute_regs(double freq, int &retR, int &retcontrol, 167 int &retN, double &retfreq) 168 168 { 169 169 /* … … 194 194 } 195 195 196 float 196 double 197 197 flexrf_base::_refclk_freq() 198 198 { … … 201 201 202 202 struct freq_result_t 203 flexrf_base::set_freq( floatfreq)203 flexrf_base::set_freq(double freq) 204 204 { 205 205 /* … … 219 219 220 220 int R, control, N; 221 floatactual_freq;221 double actual_freq; 222 222 _compute_regs(freq, R, control, N, actual_freq); 223 223 … … 288 288 289 289 void 290 flexrf_base::set_lo_offset( floatoffset)290 flexrf_base::set_lo_offset(double offset) 291 291 { 292 292 /* … … 298 298 } 299 299 300 float 300 double 301 301 flexrf_base::lo_offset() 302 302 { … … 582 582 583 583 bool 584 _AD4360_common::_compute_regs( float refclk_freq, floatfreq, int &retR,585 int &retcontrol, int &retN, float&retfreq)584 _AD4360_common::_compute_regs(double refclk_freq, double freq, int &retR, 585 int &retcontrol, int &retN, double &retfreq) 586 586 { 587 587 /* … … 596 596 // Band-specific N-Register Values 597 597 //float phdet_freq = _refclk_freq()/d_R_DIV; 598 floatphdet_freq = refclk_freq/d_R_DIV;599 floatdesired_n = round(freq*d_freq_mult/phdet_freq);600 floatactual_freq = desired_n * phdet_freq;598 double phdet_freq = refclk_freq/d_R_DIV; 599 double desired_n = round(freq*d_freq_mult/phdet_freq); 600 double actual_freq = desired_n * phdet_freq; 601 601 int B = floor(desired_n/_prescaler()); 602 602 int A = desired_n - _prescaler()*B; … … 661 661 } 662 662 663 float 663 double 664 664 _AD4360_common::freq_min() 665 665 { … … 667 667 } 668 668 669 float 669 double 670 670 _AD4360_common::freq_max() 671 671 { … … 693 693 } 694 694 695 float 695 double 696 696 _2400_common::freq_min() 697 697 { … … 699 699 } 700 700 701 float 701 double 702 702 _2400_common::freq_max() 703 703 { … … 725 725 } 726 726 727 float727 double 728 728 _1200_common::freq_min() 729 729 { … … 731 731 } 732 732 733 float733 double 734 734 _1200_common::freq_max() 735 735 { … … 757 757 } 758 758 759 float759 double 760 760 _1800_common::freq_min() 761 761 { … … 763 763 } 764 764 765 float765 double 766 766 _1800_common::freq_max() 767 767 { … … 789 789 } 790 790 791 float 791 double 792 792 _900_common::freq_min() 793 793 { … … 795 795 } 796 796 797 float 797 double 798 798 _900_common::freq_max() 799 799 { … … 827 827 } 828 828 829 float829 double 830 830 _400_common::freq_min() 831 831 { … … 833 833 } 834 834 835 float835 double 836 836 _400_common::freq_max() 837 837 { … … 851 851 } 852 852 853 float 853 double 854 854 db_flexrf_2400_tx::freq_min() 855 855 { … … 857 857 } 858 858 859 float 859 double 860 860 db_flexrf_2400_tx::freq_max() 861 861 { … … 864 864 865 865 bool 866 db_flexrf_2400_tx::_compute_regs( floatfreq, int &retR, int &retcontrol,867 int &retN, float&retfreq)866 db_flexrf_2400_tx::_compute_regs(double freq, int &retR, int &retcontrol, 867 int &retN, double &retfreq) 868 868 { 869 869 return d_common->_compute_regs(_refclk_freq(), freq, retR, … … 908 908 } 909 909 910 float 910 double 911 911 db_flexrf_2400_rx::freq_min() 912 912 { … … 914 914 } 915 915 916 float 916 double 917 917 db_flexrf_2400_rx::freq_max() 918 918 { … … 921 921 922 922 bool 923 db_flexrf_2400_rx::_compute_regs( floatfreq, int &retR, int &retcontrol,924 int &retN, float&retfreq)923 db_flexrf_2400_rx::_compute_regs(double freq, int &retR, int &retcontrol, 924 int &retN, double &retfreq) 925 925 { 926 926 return d_common->_compute_regs(_refclk_freq(), freq, retR, … … 941 941 } 942 942 943 float 943 double 944 944 db_flexrf_1200_tx::freq_min() 945 945 { … … 947 947 } 948 948 949 float 949 double 950 950 db_flexrf_1200_tx::freq_max() 951 951 { … … 954 954 955 955 bool 956 db_flexrf_1200_tx::_compute_regs( floatfreq, int &retR, int &retcontrol,957 int &retN, float&retfreq)956 db_flexrf_1200_tx::_compute_regs(double freq, int &retR, int &retcontrol, 957 int &retN, double &retfreq) 958 958 { 959 959 return d_common->_compute_regs(_refclk_freq(), freq, retR, … … 998 998 } 999 999 1000 float 1000 double 1001 1001 db_flexrf_1200_rx::freq_min() 1002 1002 { … … 1004 1004 } 1005 1005 1006 float 1006 double 1007 1007 db_flexrf_1200_rx::freq_max() 1008 1008 { … … 1011 1011 1012 1012 bool 1013 db_flexrf_1200_rx::_compute_regs( floatfreq, int &retR, int &retcontrol,1014 int &retN, float&retfreq)1013 db_flexrf_1200_rx::_compute_regs(double freq, int &retR, int &retcontrol, 1014 int &retN, double &retfreq) 1015 1015 { 1016 1016 return d_common->_compute_regs(_refclk_freq(), freq, retR, … … 1032 1032 } 1033 1033 1034 float 1034 double 1035 1035 db_flexrf_1800_tx::freq_min() 1036 1036 { … … 1038 1038 } 1039 1039 1040 float 1040 double 1041 1041 db_flexrf_1800_tx::freq_max() 1042 1042 { … … 1045 1045 1046 1046 bool 1047 db_flexrf_1800_tx::_compute_regs( floatfreq, int &retR, int &retcontrol,1048 int &retN, float&retfreq)1047 db_flexrf_1800_tx::_compute_regs(double freq, int &retR, int &retcontrol, 1048 int &retN, double &retfreq) 1049 1049 { 1050 1050 return d_common->_compute_regs(_refclk_freq(), freq, retR, … … 1089 1089 } 1090 1090 1091 float 1091 double 1092 1092 db_flexrf_1800_rx::freq_min() 1093 1093 { … … 1095 1095 } 1096 1096 1097 float 1097 double 1098 1098 db_flexrf_1800_rx::freq_max() 1099 1099 { … … 1102 1102 1103 1103 bool 1104 db_flexrf_1800_rx::_compute_regs( floatfreq, int &retR, int &retcontrol,1105 int &retN, float&retfreq)1104 db_flexrf_1800_rx::_compute_regs(double freq, int &retR, int &retcontrol, 1105 int &retN, double &retfreq) 1106 1106 { 1107 1107 return d_common->_compute_regs(_refclk_freq(), freq, retR, … … 1123 1123 } 1124 1124 1125 float 1125 double 1126 1126 db_flexrf_900_tx::freq_min() 1127 1127 { … … 1129 1129 } 1130 1130 1131 float 1131 double 1132 1132 db_flexrf_900_tx::freq_max() 1133 1133 { … … 1136 1136 1137 1137 bool 1138 db_flexrf_900_tx::_compute_regs( floatfreq, int &retR, int &retcontrol,1139 int &retN, float&retfreq)1138 db_flexrf_900_tx::_compute_regs(double freq, int &retR, int &retcontrol, 1139 int &retN, double &retfreq) 1140 1140 { 1141 1141 return d_common->_compute_regs(_refclk_freq(), freq, retR, … … 1178 1178 } 1179 1179 1180 float 1180 double 1181 1181 db_flexrf_900_rx::freq_min() 1182 1182 { … … 1184 1184 } 1185 1185 1186 float 1186 double 1187 1187 db_flexrf_900_rx::freq_max() 1188 1188 { … … 1191 1191 1192 1192 bool 1193 db_flexrf_900_rx::_compute_regs( floatfreq, int &retR, int &retcontrol,1194 int &retN, float&retfreq)1193 db_flexrf_900_rx::_compute_regs(double freq, int &retR, int &retcontrol, 1194 int &retN, double &retfreq) 1195 1195 { 1196 1196 return d_common->_compute_regs(_refclk_freq(), freq, retR, … … 1211 1211 } 1212 1212 1213 float 1213 double 1214 1214 db_flexrf_400_tx::freq_min() 1215 1215 { … … 1217 1217 } 1218 1218 1219 float 1219 double 1220 1220 db_flexrf_400_tx::freq_max() 1221 1221 { … … 1224 1224 1225 1225 bool 1226 db_flexrf_400_tx::_compute_regs( floatfreq, int &retR, int &retcontrol,1227 int &retN, float&retfreq)1226 db_flexrf_400_tx::_compute_regs(double freq, int &retR, int &retcontrol, 1227 int &retN, double &retfreq) 1228 1228 { 1229 1229 return d_common->_compute_regs(_refclk_freq(), freq, retR, … … 1269 1269 } 1270 1270 1271 float 1271 double 1272 1272 db_flexrf_400_rx::freq_min() 1273 1273 { … … 1275 1275 } 1276 1276 1277 float 1277 double 1278 1278 db_flexrf_400_rx::freq_max() 1279 1279 { … … 1282 1282 1283 1283 bool 1284 db_flexrf_400_rx::_compute_regs( floatfreq, int &retR, int &retcontrol,1285 int &retN, float&retfreq)1284 db_flexrf_400_rx::_compute_regs(double freq, int &retR, int &retcontrol, 1285 int &retN, double &retfreq) 1286 1286 { 1287 1287 return d_common->_compute_regs(_refclk_freq(), freq, retR, gnuradio/branches/features/cppdb/usrp/host/lib/legacy/db_flexrf.h
r9656 r9670 37 37 ~flexrf_base(); 38 38 39 struct freq_result_t set_freq( floatfreq);39 struct freq_result_t set_freq(double freq); 40 40 float gain_min(); 41 41 float gain_max(); … … 43 43 bool set_gain(float gain); 44 44 bool is_quadrature(); 45 floatlo_offset();46 void set_lo_offset( floatoffset);45 double lo_offset(); 46 void set_lo_offset(double offset); 47 47 48 48 protected: … … 54 54 bool _lock_detect(); 55 55 56 virtual bool _compute_regs( floatfreq, int &retR, int &retcontrol,57 int &retN, float&retfreq);56 virtual bool _compute_regs(double freq, int &retR, int &retcontrol, 57 int &retN, double &retfreq); 58 58 int _compute_control_reg(); 59 59 int _refclk_divisor(); 60 float_refclk_freq();60 double _refclk_freq(); 61 61 62 62 bool _set_pga(float pga_gain); … … 65 65 int power_off() { return 0; } 66 66 67 floatd_lo_offset;67 double d_lo_offset; 68 68 bool d_first; 69 69 int d_spi_format; … … 118 118 virtual ~_AD4360_common(); 119 119 120 virtual floatfreq_min();121 virtual floatfreq_max();122 123 bool _compute_regs( float refclk_freq, floatfreq, int &retR,124 int &retcontrol, int &retN, float&retfreq);120 virtual double freq_min(); 121 virtual double freq_max(); 122 123 bool _compute_regs(double refclk_freq, double freq, int &retR, 124 int &retcontrol, int &retN, double &retfreq); 125 125 int _compute_control_reg(); 126 126 virtual int _refclk_divisor(); … … 149 149 ~_2400_common() {} 150 150 151 floatfreq_min();152 floatfreq_max();151 double freq_min(); 152 double freq_max(); 153 153 }; 154 154 … … 161 161 ~_1200_common() {} 162 162 163 floatfreq_min();164 floatfreq_max();163 double freq_min(); 164 double freq_max(); 165 165 }; 166 166 … … 173 173 ~_1800_common() {} 174 174 175 floatfreq_min();176 floatfreq_max();175 double freq_min(); 176 double freq_max(); 177 177 }; 178 178 … … 185 185 ~_900_common() {} 186 186 187 floatfreq_min();188 floatfreq_max();187 double freq_min(); 188 double freq_max(); 189 189 }; 190 190 … … 197 197 ~_400_common() {} 198 198 199 floatfreq_min();200 floatfreq_max();199 double freq_min(); 200 double freq_max(); 201 201 }; 202 202 … … 211 211 212 212 // Wrapper calls to d_common functions 213 bool _compute_regs( floatfreq, int &retR, int &retcontrol,214 int &retN, float&retfreq);215 floatfreq_min();216 floatfreq_max();213 bool _compute_regs(double freq, int &retR, int &retcontrol, 214 int &retN, double &retfreq); 215 double freq_min(); 216 double freq_max(); 217 217 }; 218 218 … … 228 228 bool i_and_q_swapped(); 229 229 230 floatfreq_min();231 floatfreq_max();232 bool _compute_regs( floatfreq, int &retR, int &retcontrol,233 int &retN, float&retfreq);230 double freq_min(); 231 double freq_max(); 232 bool _compute_regs(double freq, int &retR, int &retcontrol, 233 int &retN, double &retfreq); 234 234 }; 235 235 … … 243 243 244 244 // Wrapper calls to d_common functions 245 bool _compute_regs( floatfreq, int &retR, int &retcontrol,246 int &retN, float&retfreq);247 floatfreq_min();248 floatfreq_max();245 bool _compute_regs(double freq, int &retR, int &retcontrol, 246 int &retN, double &retfreq); 247 double freq_min(); 248 double freq_max(); 249 249 }; 250 250 … … 260 260 bool i_and_q_swapped(); 261 261 262 floatfreq_min();263 floatfreq_max();264 bool _compute_regs( floatfreq, int &retR, int &retcontrol,265 int &retN, float&retfreq);262 double freq_min(); 263 double freq_max(); 264 bool _compute_regs(double freq, int &retR, int &retcontrol, 265 int &retN, double &retfreq); 266 266 }; 267 267 … … 275 275 276 276 // Wrapper calls to d_common functions 277 bool _compute_regs( floatfreq, int &retR, int &retcontrol,278 int &retN, float&retfreq);279 floatfreq_min();280 floatfreq_max();277 bool _compute_regs(double freq, int &retR, int &retcontrol, 278 int &retN, double &retfreq); 279 double freq_min(); 280 double freq_max(); 281 281 }; 282 282 … … 292 292 bool i_and_q_swapped(); 293 293 294 floatfreq_min();295 floatfreq_max();296 bool _compute_regs( floatfreq, int &retR, int &retcontrol,297 int &retN, float&retfreq);294 double freq_min(); 295 double freq_max(); 296 bool _compute_regs(double freq, int &retR, int &retcontrol, 297 int &retN, double &retfreq); 298 298 }; 299 299 … … 307 307 308 308 // Wrapper calls to d_common functions 309 bool _compute_regs( floatfreq, int &retR, int &retcontrol,310 int &retN, float&retfreq);311 floatfreq_min();312 floatfreq_max();309 bool _compute_regs(double freq, int &retR, int &retcontrol, 310 int &retN, double &retfreq); 311 double freq_min(); 312 double freq_max(); 313 313 }; 314 314
