Does bladerf_schedule_retune flush sample buffers ?

Discussions related to embedded firmware, driver, and user mode application software development
Post Reply
wpats
Posts: 9
Joined: Tue Aug 18, 2015 8:13 pm

Does bladerf_schedule_retune flush sample buffers ?

Post 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
jynik
Posts: 455
Joined: Thu Jun 06, 2013 8:15 pm

Re: Does bladerf_schedule_retune flush sample buffers ?

Post 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
Post Reply