Changeset 9753

Show
Ignore:
Timestamp:
10/08/08 16:10:18
Author:
eb
Message:

Applied two patches from Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>
dated 30 September 2008.

Remove superfulous d_tx variable in _AD4360_common

  • db_flexrf-remove-d_tx-p1.diff
  • db_flexrf-remove-d_tx-p2.diff
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/branches/developers/eb/cppdb-wip/usrp/host/lib/legacy/db_flexrf.cc

    r9752 r9753  
    537537 
    538538 
    539 _AD4360_common::_AD4360_common(bool tx) 
    540   : d_tx(tx) 
     539_AD4360_common::_AD4360_common() 
    541540{ 
    542541  // R-Register Common Values 
     
    660659//---------------------------------------------------------------------- 
    661660 
    662 _2400_common::_2400_common(bool tx
    663   : _AD4360_common(tx
     661_2400_common::_2400_common(
     662  : _AD4360_common(
    664663{ 
    665664  // Band-specific R-Register Values 
     
    692691//---------------------------------------------------------------------- 
    693692 
    694 _1200_common::_1200_common(bool tx
    695   : _AD4360_common(tx
     693_1200_common::_1200_common(
     694  : _AD4360_common(
    696695{ 
    697696  // Band-specific R-Register Values 
     
    724723//------------------------------------------------------------------------- 
    725724 
    726 _1800_common::_1800_common(bool tx
    727   : _AD4360_common(tx
     725_1800_common::_1800_common(
     726  : _AD4360_common(
    728727{ 
    729728  // Band-specific R-Register Values 
     
    756755//------------------------------------------------------------------------- 
    757756 
    758 _900_common::_900_common(bool tx
    759   : _AD4360_common(tx
     757_900_common::_900_common(
     758  : _AD4360_common(
    760759{ 
    761760  // Band-specific R-Register Values 
     
    788787//------------------------------------------------------------------------- 
    789788 
    790 _400_common::_400_common(bool tx
    791   : _AD4360_common(tx
     789_400_common::_400_common(
     790  : _AD4360_common(
    792791{ 
    793792  // Band-specific R-Register Values 
     
    801800  // Band specifc N-Register Values  These are different for TX/RX 
    802801  d_DIVSEL = 0;   // bit 23 
    803   if(d_tx) { 
    804     d_DIV2 = 1;   // bit 22 
    805   } 
    806   else { 
    807     d_DIV2 = 0;   // bit 22   // RX side has built-in DIV2 in AD8348 
    808   } 
    809802  d_freq_mult = 2; 
    810803   
     
    824817 
    825818 
     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 
    826831//------------------------------------------------------------     
    827832 
     
    829834  : flexrf_base_tx(usrp, which) 
    830835{ 
    831   d_common = new _2400_common(d_tx); 
     836  d_common = new _2400_common(); 
    832837} 
    833838 
     
    861866  : flexrf_base_rx(usrp, which) 
    862867{ 
    863   d_common = new _2400_common(d_tx); 
     868  d_common = new _2400_common(); 
    864869} 
    865870 
     
    919924  : flexrf_base_tx(usrp, which) 
    920925{ 
    921   d_common = new _1200_common(d_tx); 
     926  d_common = new _1200_common(); 
    922927} 
    923928 
     
    952957  : flexrf_base_rx(usrp, which) 
    953958{ 
    954   d_common = new _1200_common(d_tx); 
     959  d_common = new _1200_common(); 
    955960} 
    956961 
     
    10101015  : flexrf_base_tx(usrp, which) 
    10111016{ 
    1012   d_common = new _1800_common(d_tx); 
     1017  d_common = new _1800_common(); 
    10131018} 
    10141019 
     
    10421047  : flexrf_base_rx(usrp, which) 
    10431048{ 
    1044   d_common = new _1800_common(d_tx); 
     1049  d_common = new _1800_common(); 
    10451050} 
    10461051 
     
    11011106  : flexrf_base_tx(usrp, which) 
    11021107{ 
    1103   d_common = new _900_common(d_tx); 
     1108  d_common = new _900_common(); 
    11041109} 
    11051110 
     
    11321137  : flexrf_base_rx(usrp, which) 
    11331138{ 
    1134   d_common = new _900_common(d_tx); 
     1139  d_common = new _900_common(); 
    11351140} 
    11361141 
     
    11891194  : flexrf_base_tx(usrp, which, POWER_UP) 
    11901195{ 
    1191   d_common = new _400_common(d_tx); 
     1196  d_common = new _400_tx(); 
    11921197} 
    11931198 
     
    12211226  : flexrf_base_rx(usrp, which, POWER_UP) 
    12221227{ 
    1223   d_common = new _400_common(d_tx); 
     1228  d_common = new _400_rx(); 
    12241229} 
    12251230 
  • gnuradio/branches/developers/eb/cppdb-wip/usrp/host/lib/legacy/db_flexrf.h

    r9752 r9753  
    113113{ 
    114114public: 
    115   _AD4360_common(bool tx); 
     115  _AD4360_common(); 
    116116  virtual ~_AD4360_common(); 
    117117 
     
    128128 
    129129protected: 
    130   bool d_tx; 
    131  
    132130  int d_R_RSV, d_BSC, d_TEST, d_LDP, d_ABP, d_N_RSV, d_PL, d_MTLD; 
    133131  int d_CPG, d_CP3S, d_PDP, d_MUXOUT, d_CR, d_PC; 
     
    144142{ 
    145143 public: 
    146   _2400_common(bool tx); 
     144  _2400_common(); 
    147145  ~_2400_common() {} 
    148146  
     
    156154{ 
    157155public: 
    158   _1200_common(bool tx); 
     156  _1200_common(); 
    159157  ~_1200_common() {} 
    160158 
     
    168166{ 
    169167 public: 
    170   _1800_common(bool tx); 
     168  _1800_common(); 
    171169  ~_1800_common() {} 
    172170 
     
    180178{ 
    181179public: 
    182   _900_common(bool tx); 
     180  _900_common(); 
    183181  ~_900_common() {} 
    184182   
     
    192190{ 
    193191public: 
    194   _400_common(bool tx); 
     192  _400_common(); 
    195193  ~_400_common() {} 
    196194 
     
    199197}; 
    200198 
     199class _400_tx : public _400_common 
     200{ 
     201public: 
     202  _400_tx(); 
     203  ~_400_tx() {} 
     204}; 
     205 
     206class _400_rx : public _400_common 
     207{ 
     208public: 
     209  _400_rx(); 
     210  ~_400_rx() {} 
     211}; 
    201212 
    202213//------------------------------------------------------------