Changeset 9688

Show
Ignore:
Timestamp:
09/30/08 19:47:40
Author:
trondeau
Message:

adding wrapper function to call tune from usrp_source and usrp_sink for compatability with Python code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/branches/features/cppdb/gr-usrp/src/usrp1_sink.i

    r9656 r9688  
    9595  bool _write_spi (int optional_header, int enables, int format, std::string buf); 
    9696  std::string _read_spi (int optional_header, int enables, int format, int len); 
     97 
     98  tune_result tune(int chan, db_base_sptr db, double target_freq); 
    9799}; 
    98100 
  • gnuradio/branches/features/cppdb/gr-usrp/src/usrp1_sink_base.h

    r9656 r9688  
    8181  unsigned int determine_tx_mux_value(const std::vector<int> &subdev_spec); 
    8282 
     83  // Wrapper function to call tune from USRP sink class 
     84  tune_result tune(int chan, db_base_sptr db, double target_freq) 
     85  { return db->tune(chan, target_freq); } 
     86 
    8387  int work (int noutput_items, 
    8488            gr_vector_const_void_star &input_items, 
  • gnuradio/branches/features/cppdb/gr-usrp/src/usrp1_source.i

    r9656 r9688  
    123123  std::string _read_spi (int optional_header, int enables, int format, int len); 
    124124 
     125  tune_result tune(int chan, db_base_sptr db, double target_freq); 
    125126}; 
    126127 
  • gnuradio/branches/features/cppdb/gr-usrp/src/usrp1_source_base.h

    r9656 r9688  
    9797  unsigned int determine_rx_mux_value(const std::vector<int> &subdev_spec); 
    9898 
     99  // Wrapper function to call tune from USRP source class 
     100  tune_result tune(int chan, db_base_sptr db, double target_freq) 
     101  { return db->tune(chan, target_freq); } 
     102 
    99103  int work (int noutput_items, 
    100104            gr_vector_const_void_star &input_items,