SoapySDR  0.5.4-g68d0793c
Vendor and platform neutral SDR interface library
Classes | Enumerations | Functions
Types.h File Reference
#include <SoapySDR/Config.h>
#include <stddef.h>

Go to the source code of this file.

Classes

struct  SoapySDRRange
 Definition for a min/max numeric range. More...
 
struct  SoapySDRKwargs
 Definition for a key/value string map. More...
 
struct  SoapySDRArgInfo
 Definition for argument info. More...
 

Enumerations

enum  SoapySDRArgInfoType { SOAPY_SDR_ARG_INFO_BOOL, SOAPY_SDR_ARG_INFO_INT, SOAPY_SDR_ARG_INFO_FLOAT, SOAPY_SDR_ARG_INFO_STRING }
 Possible data types for argument info. More...
 

Functions

SOAPY_SDR_API void SoapySDRStrings_clear (char ***elems, const size_t length)
 
SOAPY_SDR_API void SoapySDRKwargs_set (SoapySDRKwargs *args, const char *key, const char *val)
 
SOAPY_SDR_API const char * SoapySDRKwargs_get (SoapySDRKwargs *args, const char *key)
 
SOAPY_SDR_API void SoapySDRKwargs_clear (SoapySDRKwargs *args)
 
SOAPY_SDR_API void SoapySDRKwargsList_clear (SoapySDRKwargs *args, const size_t length)
 
SOAPY_SDR_API void SoapySDRArgInfo_clear (SoapySDRArgInfo *info)
 
SOAPY_SDR_API void SoapySDRArgInfoList_clear (SoapySDRArgInfo *info, const size_t length)
 

Detailed Description

Misc data type definitions used in the API.

Enumeration Type Documentation

Possible data types for argument info.

Enumerator
SOAPY_SDR_ARG_INFO_BOOL 
SOAPY_SDR_ARG_INFO_INT 
SOAPY_SDR_ARG_INFO_FLOAT 
SOAPY_SDR_ARG_INFO_STRING 

Function Documentation

SOAPY_SDR_API void SoapySDRArgInfo_clear ( SoapySDRArgInfo info)

Clear the contents of a argument info structure. This frees all the underlying memory and clears the members.

SOAPY_SDR_API void SoapySDRArgInfoList_clear ( SoapySDRArgInfo info,
const size_t  length 
)

Clear a list of argument info structures. This frees all the underlying memory and clears the members.

SOAPY_SDR_API void SoapySDRKwargs_clear ( SoapySDRKwargs args)

Clear the contents of a kwargs structure. This frees all the underlying memory and clears the members.

SOAPY_SDR_API const char* SoapySDRKwargs_get ( SoapySDRKwargs args,
const char *  key 
)

Get a value given a key in a kwargs structure.

Returns
the string or NULL if not found
SOAPY_SDR_API void SoapySDRKwargs_set ( SoapySDRKwargs args,
const char *  key,
const char *  val 
)

Set a key/value pair in a kwargs structure.

SOAPY_SDR_API void SoapySDRKwargsList_clear ( SoapySDRKwargs args,
const size_t  length 
)

Clear a list of kwargs structures. This frees all the underlying memory and clears the members.

SOAPY_SDR_API void SoapySDRStrings_clear ( char ***  elems,
const size_t  length 
)

Clear the contents of a list of string Convenience call to deal with results that return a string list.