Changeset 9756

Show
Ignore:
Timestamp:
10/08/08 17:22:47
Author:
eb
Message:

removed protected d_usrp instance variable

Files:

Legend:

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

    r9755 r9756  
    3737#define CLOCK_OUT (1 << 0) 
    3838 
    39 flexrf_base::flexrf_base(usrp_basic *usrp, int which, int _power_on) 
    40   : db_base(usrp, which), d_power_on(_power_on) 
     39flexrf_base::flexrf_base(usrp_basic *usrp, int which, bool tx, int _power_on) 
     40  : db_base(usrp, which, tx), d_power_on(_power_on) 
    4141{ 
    4242  /* 
     
    5555   
    5656  set_auto_tr(false); 
    57  
    58   /* 
    59   std::string title; 
    60   if(debug_using_gui) { 
    61     title = "FlexRF Debug Rx"; 
    62     if(d_tx) { 
    63       title = "FlexRF Debug Tx"; 
    64     } 
    65     d_gui = flexrf_debug_gui.flexrf_debug_gui(title); 
    66     d_gui.Show(true); 
    67   } 
    68   */ 
    6957} 
    7058 
     
    302290 
    303291flexrf_base_tx::flexrf_base_tx(usrp_basic *usrp, int which, int _power_on) 
    304   : flexrf_base(usrp, which, _power_on) 
     292  : flexrf_base(usrp, which, true, _power_on) 
    305293{ 
    306294  /* 
     
    309297  */ 
    310298   
    311   d_usrp = (usrp_basic_tx*)usrp; 
    312   d_tx = true; 
    313  
    314299  if(which == 0) { 
    315300    d_spi_enable = SPI_ENABLE_TX_A; 
     
    408393 
    409394flexrf_base_rx::flexrf_base_rx(usrp_basic *usrp, int which, int _power_on) 
    410   : flexrf_base(usrp, which, _power_on) 
     395  : flexrf_base(usrp, which, false, _power_on) 
    411396{ 
    412397  /* 
     
    414399    @param which: 0 or 1 corresponding to side RX_A or RX_B respectively. 
    415400  */ 
    416  
    417   d_usrp = (usrp_basic_rx*)usrp; 
    418   d_tx = false; 
    419401 
    420402  if(which == 0) { 
     
    657639} 
    658640 
    659 double 
    660 _AD4360_common::freq_min() 
    661 { 
    662   throw 0; 
    663 } 
    664  
    665 double 
    666 _AD4360_common::freq_max() 
    667 { 
    668   throw 0; 
    669 } 
    670  
    671641//---------------------------------------------------------------------- 
    672642 
  • gnuradio/branches/developers/eb/cppdb-wip/usrp/host/lib/legacy/db_flexrf.h

    r9754 r9756  
    3434{ 
    3535public: 
    36   flexrf_base(usrp_basic *usrp, int which, int _power_on=0); 
     36  flexrf_base(usrp_basic *usrp, int which, bool tx, int _power_on=0); 
    3737  ~flexrf_base(); 
    3838 
     
    8989  bool set_enable(bool on); 
    9090  bool set_gain(float gain); 
    91  
    92 protected: 
    93   usrp_basic_tx *d_usrp; 
    9491}; 
    9592 
     
    104101  bool select_rx_antenna(const std::string &which_antenna); 
    105102  bool set_gain(float gain); 
    106  
    107 protected: 
    108   usrp_basic_rx *d_usrp; 
    109103}; 
    110104 
     
    118112  virtual ~_AD4360_common(); 
    119113 
    120   virtual double freq_min()
    121   virtual double freq_max()
     114  virtual double freq_min() = 0
     115  virtual double freq_max() = 0
    122116 
    123117  bool _compute_regs(double refclk_freq, double freq, int &retR,