On Tue, Jan 19, 2010 at 05:17:56PM +0530, srinivas naga vutukuri wrote:
And also am trying to understand the ADC/DAC rates. I just put the
usrp2::impl::adc_rate(), usrp2::impl::dac_rate() in the constructor
usrp2::impl::impl() to see, i got both values printed as 1,
(assuming 1 MHz or 1 MS/s). But from gnuradio.org site, i saw that
ADCs (100 MS/s) and DAC (400 MS/s). So can able to set these values
also?
A quick look at the documentation or code will reveal that these
functions return a bool for success or failure, and the actual value
by reference:
http://gnuradio.org/doc/doxygen/classusrp2_1_1usrp2.html
// Get Sampling rate of A/D converter in Hz
bool adc_rate(long *rate);
// Get Sampling rate of D/A converter in Hz
bool dac_rate(long *rate);
Eric