aboutsummaryrefslogtreecommitdiffstats
path: root/Dummy_Streaming.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-24 06:22:47 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-24 06:22:47 +0100
commit8c7c2e4eb49ce4bbd4e9a6b8b8fccf2905be1966 (patch)
tree2697920827fb4c2a97c69cc9fe6c9a9fef9f9b8b /Dummy_Streaming.cpp
parent14dc3f49f3df898a61e20aa3a5a3257d437bb287 (diff)
downloadSoapyDummy-8c7c2e4eb49ce4bbd4e9a6b8b8fccf2905be1966.tar.gz
SoapyDummy-8c7c2e4eb49ce4bbd4e9a6b8b8fccf2905be1966.tar.bz2
SoapyDummy-8c7c2e4eb49ce4bbd4e9a6b8b8fccf2905be1966.zip
Remove DMA interface
Diffstat (limited to 'Dummy_Streaming.cpp')
-rw-r--r--Dummy_Streaming.cpp80
1 files changed, 1 insertions, 79 deletions
diff --git a/Dummy_Streaming.cpp b/Dummy_Streaming.cpp
index 493800d..1ef1c72 100644
--- a/Dummy_Streaming.cpp
+++ b/Dummy_Streaming.cpp
@@ -210,87 +210,9 @@ int SoapyDummy::readStreamStatus(
return SOAPY_SDR_TIMEOUT;
}
-int SoapyDummy::acquireReadBuffer(
- SoapySDR::Stream *stream,
- size_t &handle,
- const void **buffs,
- int &flags,
- long long &timeNs,
- const long timeoutUs)
-{
- if (stream != RX_STREAM){
- return SOAPY_SDR_NOT_SUPPORTED;
- }
-
- return this->getStreamMTU(stream);
-}
-
-void SoapyDummy::releaseReadBuffer(
- SoapySDR::Stream *stream,
- const size_t handle)
-{
- if(stream != RX_STREAM){
- throw std::runtime_error("Invalid stream");
- }
-}
-
-int SoapyDummy::acquireWriteBuffer(
- SoapySDR::Stream *stream,
- size_t &handle,
- void **buffs,
- const long timeoutUs)
-{
-
- if(stream != TX_STREAM){
- return SOAPY_SDR_NOT_SUPPORTED;
- }
-
- return this->getStreamMTU(stream);
-}
-
-void SoapyDummy::releaseWriteBuffer(
- SoapySDR::Stream *stream,
- const size_t handle,
- const size_t numElems,
- int &flags,
- const long long timeNs)
-{
- if (stream == TX_STREAM) {
- }
- else {
- throw std::runtime_error("Invalid stream");
- }
-}
-
size_t SoapyDummy::getNumDirectAccessBuffers(
SoapySDR::Stream *stream)
{
- if (stream == RX_STREAM) {
- return m_rxstream.buf_num;
- }
- else if(stream == TX_STREAM){
- return m_rxstream.buf_num;
- }
- else {
- throw std::runtime_error("Invalid stream");
- }
-}
-
-int SoapyDummy::getDirectAccessBufferAddrs(
- SoapySDR::Stream *stream,
- const size_t handle,
- void **buffs)
-{
-
- if (stream == RX_STREAM) {
- buffs[0]=(void *)m_rxstream.buf;
- }
- else if (stream == TX_STREAM) {
- buffs[0]=(void *)m_txstream.buf;
- }
- else {
- throw std::runtime_error("Invalid stream");
- }
-
return 0;
}
+