GNU Radio Manual and C++ API Reference  v3.9.2.0-89-gb7c7001e
The Free & Open Software Radio Ecosystem
gr::soapy Namespace Reference

Classes

class  block
 
class  sink
 
class  source
 
struct  device_deleter
 
class  block_impl
 Base block implementation for SDR devices. More...
 
class  sink_impl
 Sink block implementation for SDR devices. More...
 
class  source_impl
 Source block implementation for SDR devices. More...
 

Typedefs

using arginfo_t = SoapySDR::ArgInfo
 
using arginfo_list_t = SoapySDR::ArgInfoList
 
using argtype_t = SoapySDR::ArgInfo::Type
 
using kwargs_t = SoapySDR::Kwargs
 
using kwargs_list_t = SoapySDR::KwargsList
 
using range_t = SoapySDR::Range
 
using range_list_t = SoapySDR::RangeList
 
using cmd_handler_t = std::function< void(pmt::pmt_t, size_t)>
 
using device_ptr_t = std::unique_ptr< SoapySDR::Device, device_deleter >
 

Functions

template<typename T >
static T string_to_setting (const std::string &str)
 
template<>
bool string_to_setting< bool > (const std::string &str)
 convert empty and "false" strings to false, integers to their truthness More...
 
template<typename T >
static std::string setting_to_string (const T &setting)
 
template<>
std::string setting_to_string< bool > (const bool &setting)
 

Typedef Documentation

◆ arginfo_list_t

using gr::soapy::arginfo_list_t = typedef SoapySDR::ArgInfoList

◆ arginfo_t

using gr::soapy::arginfo_t = typedef SoapySDR::ArgInfo

◆ argtype_t

using gr::soapy::argtype_t = typedef SoapySDR::ArgInfo::Type

◆ cmd_handler_t

using gr::soapy::cmd_handler_t = typedef std::function<void(pmt::pmt_t, size_t)>

◆ device_ptr_t

using gr::soapy::device_ptr_t = typedef std::unique_ptr<SoapySDR::Device, device_deleter>

◆ kwargs_list_t

using gr::soapy::kwargs_list_t = typedef SoapySDR::KwargsList

◆ kwargs_t

using gr::soapy::kwargs_t = typedef SoapySDR::Kwargs

◆ range_list_t

using gr::soapy::range_list_t = typedef SoapySDR::RangeList

◆ range_t

using gr::soapy::range_t = typedef SoapySDR::Range

Function Documentation

◆ setting_to_string()

template<typename T >
static std::string gr::soapy::setting_to_string ( const T &  setting)
inlinestatic

◆ setting_to_string< bool >()

template<>
std::string gr::soapy::setting_to_string< bool > ( const bool &  setting)
inline

References SOAPY_SDR_FALSE, and SOAPY_SDR_TRUE.

◆ string_to_setting()

template<typename T >
static T gr::soapy::string_to_setting ( const std::string &  str)
inlinestatic

◆ string_to_setting< bool >()

template<>
bool gr::soapy::string_to_setting< bool > ( const std::string &  str)
inline

convert empty and "false" strings to false, integers to their truthness

References SOAPY_SDR_FALSE, and SOAPY_SDR_TRUE.