Changeset 9753
- Timestamp:
- 10/08/08 16:10:18
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/branches/developers/eb/cppdb-wip/usrp/host/lib/legacy/db_flexrf.cc
r9752 r9753 537 537 538 538 539 _AD4360_common::_AD4360_common(bool tx) 540 : d_tx(tx) 539 _AD4360_common::_AD4360_common() 541 540 { 542 541 // R-Register Common Values … … 660 659 //---------------------------------------------------------------------- 661 660 662 _2400_common::_2400_common( bool tx)663 : _AD4360_common( tx)661 _2400_common::_2400_common() 662 : _AD4360_common() 664 663 { 665 664 // Band-specific R-Register Values … … 692 691 //---------------------------------------------------------------------- 693 692 694 _1200_common::_1200_common( bool tx)695 : _AD4360_common( tx)693 _1200_common::_1200_common() 694 : _AD4360_common() 696 695 { 697 696 // Band-specific R-Register Values … … 724 723 //------------------------------------------------------------------------- 725 724 726 _1800_common::_1800_common( bool tx)727 : _AD4360_common( tx)725 _1800_common::_1800_common() 726 : _AD4360_common() 728 727 { 729 728 // Band-specific R-Register Values … … 756 755 //------------------------------------------------------------------------- 757 756 758 _900_common::_900_common( bool tx)759 : _AD4360_common( tx)757 _900_common::_900_common() 758 : _AD4360_common() 760 759 { 761 760 // Band-specific R-Register Values … … 788 787 //------------------------------------------------------------------------- 789 788 790 _400_common::_400_common( bool tx)791 : _AD4360_common( tx)789 _400_common::_400_common() 790 : _AD4360_common() 792 791 { 793 792 // Band-specific R-Register Values … … 801 800 // Band specifc N-Register Values These are different for TX/RX 802 801 d_DIVSEL = 0; // bit 23 803 if(d_tx) {804 d_DIV2 = 1; // bit 22805 }806 else {807 d_DIV2 = 0; // bit 22 // RX side has built-in DIV2 in AD8348808 }809 802 d_freq_mult = 2; 810 803 … … 824 817 } 825 818 819 _400_tx::_400_tx() 820 : _400_common() 821 { 822 d_DIV2 = 1; // bit 22 823 } 824 825 _400_rx::_400_rx() 826 : _400_common() 827 { 828 d_DIV2 = 0; // bit 22 // RX side has built-in DIV2 in AD8348 829 } 830 826 831 //------------------------------------------------------------ 827 832 … … 829 834 : flexrf_base_tx(usrp, which) 830 835 { 831 d_common = new _2400_common( d_tx);836 d_common = new _2400_common(); 832 837 } 833 838 … … 861 866 : flexrf_base_rx(usrp, which) 862 867 { 863 d_common = new _2400_common( d_tx);868 d_common = new _2400_common(); 864 869 } 865 870 … … 919 924 : flexrf_base_tx(usrp, which) 920 925 { 921 d_common = new _1200_common( d_tx);926 d_common = new _1200_common(); 922 927 } 923 928 … … 952 957 : flexrf_base_rx(usrp, which) 953 958 { 954 d_common = new _1200_common( d_tx);959 d_common = new _1200_common(); 955 960 } 956 961 … … 1010 1015 : flexrf_base_tx(usrp, which) 1011 1016 { 1012 d_common = new _1800_common( d_tx);1017 d_common = new _1800_common(); 1013 1018 } 1014 1019 … … 1042 1047 : flexrf_base_rx(usrp, which) 1043 1048 { 1044 d_common = new _1800_common( d_tx);1049 d_common = new _1800_common(); 1045 1050 } 1046 1051 … … 1101 1106 : flexrf_base_tx(usrp, which) 1102 1107 { 1103 d_common = new _900_common( d_tx);1108 d_common = new _900_common(); 1104 1109 } 1105 1110 … … 1132 1137 : flexrf_base_rx(usrp, which) 1133 1138 { 1134 d_common = new _900_common( d_tx);1139 d_common = new _900_common(); 1135 1140 } 1136 1141 … … 1189 1194 : flexrf_base_tx(usrp, which, POWER_UP) 1190 1195 { 1191 d_common = new _400_ common(d_tx);1196 d_common = new _400_tx(); 1192 1197 } 1193 1198 … … 1221 1226 : flexrf_base_rx(usrp, which, POWER_UP) 1222 1227 { 1223 d_common = new _400_ common(d_tx);1228 d_common = new _400_rx(); 1224 1229 } 1225 1230 gnuradio/branches/developers/eb/cppdb-wip/usrp/host/lib/legacy/db_flexrf.h
r9752 r9753 113 113 { 114 114 public: 115 _AD4360_common( bool tx);115 _AD4360_common(); 116 116 virtual ~_AD4360_common(); 117 117 … … 128 128 129 129 protected: 130 bool d_tx;131 132 130 int d_R_RSV, d_BSC, d_TEST, d_LDP, d_ABP, d_N_RSV, d_PL, d_MTLD; 133 131 int d_CPG, d_CP3S, d_PDP, d_MUXOUT, d_CR, d_PC; … … 144 142 { 145 143 public: 146 _2400_common( bool tx);144 _2400_common(); 147 145 ~_2400_common() {} 148 146 … … 156 154 { 157 155 public: 158 _1200_common( bool tx);156 _1200_common(); 159 157 ~_1200_common() {} 160 158 … … 168 166 { 169 167 public: 170 _1800_common( bool tx);168 _1800_common(); 171 169 ~_1800_common() {} 172 170 … … 180 178 { 181 179 public: 182 _900_common( bool tx);180 _900_common(); 183 181 ~_900_common() {} 184 182 … … 192 190 { 193 191 public: 194 _400_common( bool tx);192 _400_common(); 195 193 ~_400_common() {} 196 194 … … 199 197 }; 200 198 199 class _400_tx : public _400_common 200 { 201 public: 202 _400_tx(); 203 ~_400_tx() {} 204 }; 205 206 class _400_rx : public _400_common 207 { 208 public: 209 _400_rx(); 210 ~_400_rx() {} 211 }; 201 212 202 213 //------------------------------------------------------------
