discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] How to use tune function?


From: Ujala Qasim
Subject: [Discuss-gnuradio] How to use tune function?
Date: Mon, 1 Jun 2009 16:14:04 +0600

The code I am basically using for capturing samples is this:
http://gnuradio.org/trac/wiki/UsrpFAQ/CppInterface

As my code is completely based on C++, I can't use usrp.tune(self.u, 0, self.subdev,106.2e6), instead can I use the following method from usrp_standard:

bool usrp_standard_rx::tune(int chan, db_base_sptr db, double target_freq, usrp_tune_result *result)

in this manner:

// Set DDC center frequency
   urx->set_rx_freq (0, center_freq);
//What should be my center_freq here?

//Set Tuning Frequency
urx->tune(0, db, 106.2e6, result) 

// How should I pass the value of db and result?
 
 // Set Number of channels
   urx->set_nchannels(1);
 
 // Set ADC PGA gain
   urx->set_pga(0,gain);
 
 // Set FPGA Mux
   urx->set_mux(0x32103210); // Board A only
 
 // Set DDC decimation rate
   urx->set_decim_rate(decim);
  
 // Set DDC phase 
   urx->set_ddc_phase(0,0);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]