SoapySDR
0.8.0-gab626068
Vendor and platform neutral SDR interface library
|
Namespaces | |
Detail | |
Classes | |
class | ArgInfo |
class | ConverterRegistry |
class | Device |
class | ModuleManager |
class | Range |
class | Registry |
Typedefs | |
typedef SoapySDRLogLevel | LogLevel |
typedef SoapySDRLogHandler | LogHandler |
typedef KwargsList(* | FindFunction) (const Kwargs &) |
typedef for a device enumeration function More... | |
typedef Device *(* | MakeFunction) (const Kwargs &) |
typedef for a device factory function More... | |
typedef std::map< std::string, FindFunction > | FindFunctions |
typedef for a dictionary of find functions More... | |
typedef std::map< std::string, MakeFunction > | MakeFunctions |
typedef for a dictionary of make functions More... | |
typedef std::map< std::string, std::string > | Kwargs |
Typedef for a dictionary of key-value string arguments. More... | |
typedef std::vector< Kwargs > | KwargsList |
Typedef for a list of key-word dictionaries. More... | |
typedef std::vector< Range > | RangeList |
typedef std::vector< ArgInfo > | ArgInfoList |
Functions | |
int32_t | F32toS32 (float from) |
float | S32toF32 (int32_t from) |
int16_t | F32toS16 (float from) |
float | S16toF32 (int16_t from) |
int8_t | F32toS8 (float from) |
float | S8toF32 (int8_t from) |
int32_t | U32toS32 (uint32_t from) |
uint32_t | S32toU32 (int32_t from) |
int16_t | U16toS16 (uint16_t from) |
uint16_t | S16toU16 (int16_t from) |
int8_t | U8toS8 (uint8_t from) |
uint8_t | S8toU8 (int8_t from) |
int16_t | S32toS16 (int32_t from) |
int32_t | S16toS32 (int16_t from) |
int8_t | S16toS8 (int16_t from) |
int16_t | S8toS16 (int8_t from) |
uint32_t | F32toU32 (float from) |
float | U32toF32 (uint32_t from) |
uint16_t | F32toU16 (float from) |
float | U16toF32 (uint16_t from) |
uint8_t | F32toU8 (float from) |
float | U8toF32 (uint8_t from) |
uint16_t | S32toU16 (int32_t from) |
int32_t | U16toS32 (uint16_t from) |
uint8_t | S32toU8 (int32_t from) |
int32_t | U8toS32 (uint8_t from) |
uint8_t | S16toU8 (int16_t from) |
int16_t | U8toS16 (uint8_t from) |
uint16_t | S8toU16 (int8_t from) |
int8_t | U16toS8 (uint16_t from) |
const SOAPY_SDR_API char * | errToStr (const int errorCode) |
SOAPY_SDR_API size_t | formatToSize (const std::string &format) |
SOAPY_SDR_API void | log (const LogLevel logLevel, const std::string &message) |
SOAPY_SDR_API void | vlogf (const SoapySDRLogLevel logLevel, const char *format, va_list argList) |
static void | logf (const SoapySDRLogLevel logLevel, const char *format,...) |
SOAPY_SDR_API void | registerLogHandler (const LogHandler &handler) |
SOAPY_SDR_API void | setLogLevel (const LogLevel logLevel) |
SOAPY_SDR_API std::string | getRootPath (void) |
Query the root installation path. More... | |
SOAPY_SDR_API std::vector< std::string > | listSearchPaths (void) |
SOAPY_SDR_API std::vector< std::string > | listModules (void) |
SOAPY_SDR_API std::vector< std::string > | listModules (const std::string &path) |
SOAPY_SDR_API std::string | loadModule (const std::string &path) |
SOAPY_SDR_API Kwargs | getLoaderResult (const std::string &path) |
SOAPY_SDR_API std::string | getModuleVersion (const std::string &path) |
SOAPY_SDR_API std::string | unloadModule (const std::string &path) |
SOAPY_SDR_API void | loadModules (void) |
SOAPY_SDR_API void | unloadModules (void) |
static long long | ticksToTimeNs (const long long ticks, const double rate) |
static long long | timeNsToTicks (const long long timeNs, const double rate) |
SOAPY_SDR_API Kwargs | KwargsFromString (const std::string &markup) |
SOAPY_SDR_API std::string | KwargsToString (const Kwargs &args) |
template<typename Type > | |
Type | StringToSetting (const std::string &s) |
template<typename Type > | |
std::string | SettingToString (const Type &s) |
SOAPY_SDR_API std::string | getAPIVersion (void) |
SOAPY_SDR_API std::string | getABIVersion (void) |
SOAPY_SDR_API std::string | getLibVersion (void) |
Variables | |
const uint32_t | U32_ZERO_OFFSET = uint32_t(1<<31) |
const uint16_t | U16_ZERO_OFFSET = uint16_t(1<<15) |
const uint8_t | U8_ZERO_OFFSET = uint8_t(1<<7) |
const uint32_t | S32_FULL_SCALE = uint32_t(1<<31) |
const uint16_t | S16_FULL_SCALE = uint16_t(1<<15) |
const uint8_t | S8_FULL_SCALE = uint8_t(1<<7) |
typedef std::vector<ArgInfo> SoapySDR::ArgInfoList |
Typedef for a list of Argument infos.
typedef KwargsList(* SoapySDR::FindFunction) (const Kwargs &) |
typedef for a device enumeration function
typedef std::map<std::string, FindFunction> SoapySDR::FindFunctions |
typedef for a dictionary of find functions
typedef std::map<std::string, std::string> SoapySDR::Kwargs |
Typedef for a dictionary of key-value string arguments.
typedef std::vector<Kwargs> SoapySDR::KwargsList |
Typedef for a list of key-word dictionaries.
Typedef for the registered log handler function.
typedef SoapySDRLogLevel SoapySDR::LogLevel |
typedef std::map<std::string, MakeFunction> SoapySDR::MakeFunctions |
typedef for a dictionary of make functions
typedef std::vector<Range> SoapySDR::RangeList |
Typedef for a list of min/max range pairs. Overall minimum: rl.front().minimum(); Overall maximum: rl.back().maximum();
const SOAPY_SDR_API char* SoapySDR::errToStr | ( | const int | errorCode | ) |
Convert a error code to a string for printing purposes. If the error code is unrecognized, errToStr returns "UNKNOWN".
errorCode | a negative integer return code |
|
inline |
|
inline |
Conversion Primitives for converting real values between Soapy formats.
from | the value to convert from |
|
inline |
|
inline |
|
inline |
|
inline |
SOAPY_SDR_API size_t SoapySDR::formatToSize | ( | const std::string & | format | ) |
Get the size of a single element in the specified format.
format | a supported format string |
SOAPY_SDR_API std::string SoapySDR::getABIVersion | ( | void | ) |
Get the ABI version string that the library was built against. A client can compare SOAPY_SDR_ABI_VERSION to getABIVersion() to check for ABI incompatibility before using the library. If the values are not equal then the client code was compiled against a different ABI than the library.
SOAPY_SDR_API std::string SoapySDR::getAPIVersion | ( | void | ) |
Get the SoapySDR library API version as a string. The format of the version string is major.minor.increment, where the digits are taken directly from SOAPY_SDR_API_VERSION.
SOAPY_SDR_API std::string SoapySDR::getLibVersion | ( | void | ) |
Get the library version and build information string. The format of the version string is major.minor.patch-buildInfo. This function is commonly used to identify the software back-end to the user for command-line utilities and graphical applications.
SOAPY_SDR_API Kwargs SoapySDR::getLoaderResult | ( | const std::string & | path | ) |
List all registration loader errors for a given module path. The resulting dictionary contains all registry entry names provided by the specified module. The value of each entry is an error message string or empty on successful load.
path | the path to a specific module file |
SOAPY_SDR_API std::string SoapySDR::getModuleVersion | ( | const std::string & | path | ) |
Get a version string for the specified module. Modules may optionally provide version strings.
path | the path to a specific module file |
SOAPY_SDR_API std::string SoapySDR::getRootPath | ( | void | ) |
Query the root installation path.
SOAPY_SDR_API Kwargs SoapySDR::KwargsFromString | ( | const std::string & | markup | ) |
Convert a markup string to a key-value map. The markup format is: "key0=value0, key1=value1"
SOAPY_SDR_API std::string SoapySDR::KwargsToString | ( | const Kwargs & | args | ) |
Convert a key-value map to a markup string. The markup format is: "key0=value0, key1=value1"
SOAPY_SDR_API std::vector<std::string> SoapySDR::listModules | ( | const std::string & | path | ) |
List all modules found in the given path.
path | a directory on the system |
SOAPY_SDR_API std::vector<std::string> SoapySDR::listModules | ( | void | ) |
List all modules found in default path.
SOAPY_SDR_API std::vector<std::string> SoapySDR::listSearchPaths | ( | void | ) |
The list of paths automatically searched by loadModules().
SOAPY_SDR_API std::string SoapySDR::loadModule | ( | const std::string & | path | ) |
Load a single module given its file system path.
path | the path to a specific module file |
SOAPY_SDR_API void SoapySDR::loadModules | ( | void | ) |
Load the support modules installed on this system. This call will only actually perform the load once. Subsequent calls are a NOP.
SOAPY_SDR_API void SoapySDR::log | ( | const LogLevel | logLevel, |
const std::string & | message | ||
) |
Send a message to the registered logger.
logLevel | a possible logging level |
message | a logger message string |
|
inlinestatic |
Send a message to the registered logger.
logLevel | a possible logging level |
format | a printf style format string |
SOAPY_SDR_API void SoapySDR::registerLogHandler | ( | const LogHandler & | handler | ) |
Register a new system log handler. Platforms should call this to replace the default stdio handler. Passing nullptr
restores the default.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
SOAPY_SDR_API void SoapySDR::setLogLevel | ( | const LogLevel | logLevel | ) |
Set the log level threshold. Log messages with lower priority are dropped.
std::string SoapySDR::SettingToString | ( | const Type & | s | ) |
Convert an arbitrary type to a string. Supports bools, integers, floats, and strings
Type | the type of the input argument |
s | the setting value as the specified type |
Type SoapySDR::StringToSetting | ( | const std::string & | s | ) |
Convert a string to the specified type. Supports bools, integers, floats, and strings
Type | the specified output type |
s | the setting value as a string |
|
inlinestatic |
Convert a tick count into a time in nanoseconds using the tick rate.
ticks | a integer tick count |
rate | the ticks per second |
|
inlinestatic |
Convert a time in nanoseconds into a tick count using the tick rate.
timeNs | time in nanoseconds |
rate | the ticks per second |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
SOAPY_SDR_API std::string SoapySDR::unloadModule | ( | const std::string & | path | ) |
Unload a module that was loaded with loadModule().
path | the path to a specific module file |
SOAPY_SDR_API void SoapySDR::unloadModules | ( | void | ) |
Unload all currently loaded support modules.
SOAPY_SDR_API void SoapySDR::vlogf | ( | const SoapySDRLogLevel | logLevel, |
const char * | format, | ||
va_list | argList | ||
) |
Send a message to the registered logger.
logLevel | a possible logging level |
format | a printf style format string |
argList | an argument list for the formatter |
const uint16_t SoapySDR::S16_FULL_SCALE = uint16_t(1<<15) |
const uint32_t SoapySDR::S32_FULL_SCALE = uint32_t(1<<31) |
const uint8_t SoapySDR::S8_FULL_SCALE = uint8_t(1<<7) |
const uint16_t SoapySDR::U16_ZERO_OFFSET = uint16_t(1<<15) |
const uint32_t SoapySDR::U32_ZERO_OFFSET = uint32_t(1<<31) |
const uint8_t SoapySDR::U8_ZERO_OFFSET = uint8_t(1<<7) |