Page 1 of 1

Does bladerf_schedule_retune flush sample buffers ?

Posted: Fri Dec 11, 2015 6:19 pm
by wpats
Hi,

Does the following call flush the RX samples from the old frequency from the sample buffers:

status = bladerf_schedule_retune(this->m_dev,
BLADERF_MODULE_RX,
BLADERF_RETUNE_NOW,
0,
&this->m_quickTunes[this->m_frequencyIndex]);

I want to discard the samples at the old frequency and only handle only the ones after the retune. I tried using timestamps for this but ran into the issue mentioned in my other post.

Thanks for any info,

--Patrick

Re: Does bladerf_schedule_retune flush sample buffers ?

Posted: Sat Dec 12, 2015 3:51 pm
by jynik
It does not. It's up to you to ensure you read at a timestamp after the retune.

However, I think we'll get to the bottom of what you're running into in your other forum thread.

Cheers,
Jon