aboutsummaryrefslogtreecommitdiffstats
path: root/Dummy_Settings.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-24 09:46:38 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-24 09:46:38 +0100
commit69f65ccc49e4c61091554e2b9be7c01ff35186f2 (patch)
tree7e26704840ec0cf1ac946b8599c6c33e70c02b21 /Dummy_Settings.cpp
parent8c7c2e4eb49ce4bbd4e9a6b8b8fccf2905be1966 (diff)
downloadSoapyDummy-69f65ccc49e4c61091554e2b9be7c01ff35186f2.tar.gz
SoapyDummy-69f65ccc49e4c61091554e2b9be7c01ff35186f2.tar.bz2
SoapyDummy-69f65ccc49e4c61091554e2b9be7c01ff35186f2.zip
Add TX to RX feedback with timestamp support, only CF32
Diffstat (limited to 'Dummy_Settings.cpp')
-rw-r--r--Dummy_Settings.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Dummy_Settings.cpp b/Dummy_Settings.cpp
index 85dc056..d449329 100644
--- a/Dummy_Settings.cpp
+++ b/Dummy_Settings.cpp
@@ -26,6 +26,7 @@
SoapyDummy::SoapyDummy( const SoapySDR::Kwargs &args )
+ : m_circ_buffer(1000000)
{
// On startup, initialise our epoch to current time, so that
// it appears the counter just started counting
@@ -272,6 +273,9 @@ SoapySDR::RangeList SoapyDummy::getFrequencyRange( const int direction, const si
void SoapyDummy::setSampleRate( const int direction, const size_t channel, const double rate )
{
m_samplerate = rate;
+
+ // ticks are in nanoseconds
+ m_circ_buffer.set_ticks_per_sample(std::lrint(1e9 / rate));
}
double SoapyDummy::getSampleRate( const int direction, const size_t channel ) const