Skip to content

Commit

Permalink
Soapy : Add getFrequency method
Browse files Browse the repository at this point in the history
  • Loading branch information
cozycactus committed Dec 25, 2023
1 parent 03e2211 commit c88520b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SoapySDDC/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,15 @@ void SoapySDDC::setFrequency(const int, const size_t, const std::string &, const
DbgPrintf("SoapySDDC::setFrequency\n");
}

double SoapySDDC::getFrequency(const int, const size_t, const std::string &) const
double SoapySDDC::getFrequency(const int, const size_t) const
{
DbgPrintf("SoapySDDC::getFrequency\n");
return 0.0;
}

double SoapySDDC::getFrequency(const int, const size_t, const std::string &name) const
{
DbgPrintf("SoapySDDC::getFrequency with name %s\n", name.c_str());
if (sampleRate == 32000000)
{
return 8000000.000000;
Expand Down
2 changes: 2 additions & 0 deletions SoapySDDC/SoapySDDC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class SoapySDDC: public SoapySDR::Device
void setFrequency(const int direction, const size_t channel, const double frequency, const SoapySDR::Kwargs &args = SoapySDR::Kwargs());

void setFrequency(const int direction,const size_t channel,const std::string &name,const double frequency,const SoapySDR::Kwargs &args = SoapySDR::Kwargs());

double getFrequency(const int direction, const size_t channel) const;

double getFrequency(const int direction, const size_t channel, const std::string &name) const;

Expand Down

0 comments on commit c88520b

Please sign in to comment.