Expand description
This crate provides bindings for the SoapySDR C API. See its header file for API documentation.
Structs§
- SoapySDR
ArgInfo - Definition for argument info
- SoapySDR
Device - SoapySDR
Kwargs - Definition for a key/value string map
- SoapySDR
Range - Definition for a min/max numeric range
- SoapySDR
Stream
Constants§
- SOAPY_
SDR_ ARG_ INFO_ BOOL - SOAPY_
SDR_ ARG_ INFO_ FLOAT - SOAPY_
SDR_ ARG_ INFO_ INT - SOAPY_
SDR_ ARG_ INFO_ STRING - SOAPY_
SDR_ CF32 - SOAPY_
SDR_ CF64 - SOAPY_
SDR_ CORRUPTION - SOAPY_
SDR_ CRITICAL - A critical error. The application might not be able to continue running successfully.
- SOAPY_
SDR_ CS4 - SOAPY_
SDR_ CS8 - SOAPY_
SDR_ CS12 - SOAPY_
SDR_ CS16 - SOAPY_
SDR_ CS32 - SOAPY_
SDR_ CU4 - SOAPY_
SDR_ CU8 - SOAPY_
SDR_ CU12 - SOAPY_
SDR_ CU16 - SOAPY_
SDR_ CU32 - SOAPY_
SDR_ DEBUG - A debugging message.
- SOAPY_
SDR_ END_ ABRUPT - SOAPY_
SDR_ END_ BURST - SOAPY_
SDR_ ERROR - An error. An operation did not complete successfully, but the application as a whole is not affected.
- SOAPY_
SDR_ F32 - SOAPY_
SDR_ F64 - SOAPY_
SDR_ FALSE - SOAPY_
SDR_ FATAL - A fatal error. The application will most likely terminate. This is the highest priority.
- SOAPY_
SDR_ HAS_ TIME - SOAPY_
SDR_ INFO - An informational message, usually denoting the successful completion of an operation.
- SOAPY_
SDR_ MORE_ FRAGMENTS - SOAPY_
SDR_ NOTICE - A notice, which is an information with just a higher priority.
- SOAPY_
SDR_ NOT_ SUPPORTED - SOAPY_
SDR_ ONE_ PACKET - SOAPY_
SDR_ OVERFLOW - SOAPY_
SDR_ RX - SOAPY_
SDR_ S8 - SOAPY_
SDR_ S16 - SOAPY_
SDR_ S32 - SOAPY_
SDR_ SSI - Streaming status indicators such as “U” (underflow) and “O” (overflow).
- SOAPY_
SDR_ STREAM_ ERROR - SOAPY_
SDR_ TIMEOUT - SOAPY_
SDR_ TIME_ ERROR - SOAPY_
SDR_ TRACE - A tracing message. This is the lowest priority.
- SOAPY_
SDR_ TRUE - SOAPY_
SDR_ TX - SOAPY_
SDR_ U8 - SOAPY_
SDR_ U16 - SOAPY_
SDR_ U32 - SOAPY_
SDR_ UNDERFLOW - SOAPY_
SDR_ USER_ FLAG0 - SOAPY_
SDR_ USER_ FLAG1 - SOAPY_
SDR_ USER_ FLAG2 - SOAPY_
SDR_ USER_ FLAG3 - SOAPY_
SDR_ USER_ FLAG4 - SOAPY_
SDR_ WAIT_ TRIGGER - SOAPY_
SDR_ WARNING - A warning. An operation completed with an unexpected result.
Functions§
- SoapySDR
ArgInfo ⚠List_ clear - Clear a list of argument info structures.
- SoapySDR
ArgInfo_ ⚠clear - Clear the contents of a argument info structure.
- SoapySDR
Device_ ⚠acquire Read Buffer - Acquire direct buffers from a receive stream.
- SoapySDR
Device_ ⚠acquire Write Buffer - Acquire direct buffers from a transmit stream.
- SoapySDR
Device_ ⚠activate Stream - Activate a stream.
- SoapySDR
Device_ ⚠close Stream - Close an open stream created by setupStream
- SoapySDR
Device_ ⚠deactivate Stream - Deactivate a stream.
- SoapySDR
Device_ ⚠enumerate - Enumerate a list of available devices on the system.
- SoapySDR
Device_ ⚠enumerate StrArgs - Enumerate a list of available devices on the system.
- SoapySDR
Device_ ⚠getAntenna - Get the selected antenna on a chain.
- SoapySDR
Device_ ⚠getBandwidth - Get the baseband filter width of the chain.
- SoapySDR
Device_ ⚠getBandwidth Range - Get the range of possible baseband filter widths.
- SoapySDR
Device_ ⚠getChannel Info - Get channel info given the streaming direction
- SoapySDR
Device_ ⚠getChannel Sensor Info - Get meta-information about a channel sensor.
- SoapySDR
Device_ ⚠getChannel Setting Info - Describe the allowed keys and values used for channel settings.
- SoapySDR
Device_ ⚠getChannel Setting Info With Key - Get information on a specific channel setting.
- SoapySDR
Device_ ⚠getClock Source - Get the clock source of the device
- SoapySDR
Device_ ⚠getDC Offset - Get the frontend DC offset correction.
- SoapySDR
Device_ ⚠getDC Offset Mode - Get the automatic DC offset corrections mode.
- SoapySDR
Device_ ⚠getDirect Access Buffer Addrs - Get the buffer addresses for a scatter/gather table entry.
- SoapySDR
Device_ ⚠getDriver Key - A key that uniquely identifies the device driver.
- SoapySDR
Device_ ⚠getFrequency - Get the overall center frequency of the chain.
- SoapySDR
Device_ ⚠getFrequency Args Info - Query the argument info description for tune args.
- SoapySDR
Device_ ⚠getFrequency Component - Get the frequency of a tunable element in the chain.
- SoapySDR
Device_ ⚠getFrequency Correction - Get the frontend frequency correction value.
- SoapySDR
Device_ ⚠getFrequency Range - Get the range of overall frequency values.
- SoapySDR
Device_ ⚠getFrequency Range Component - Get the range of tunable values for the specified element.
- SoapySDR
Device_ ⚠getFrontend Mapping - Get the mapping configuration string.
- SoapySDR
Device_ ⚠getFull Duplex - Find out if the specified channel is full or half duplex.
- SoapySDR
Device_ ⚠getGain - Get the overall value of the gain elements in a chain.
- SoapySDR
Device_ ⚠getGain Element - Get the value of an individual amplification element in a chain.
- SoapySDR
Device_ ⚠getGain Element Range - Get the range of possible gain values for a specific element.
- SoapySDR
Device_ ⚠getGain Mode - Get the automatic gain mode on the chain.
- SoapySDR
Device_ ⚠getGain Range - Get the overall range of possible gain values.
- SoapySDR
Device_ ⚠getHardware Info - Query a dictionary of available device information.
- SoapySDR
Device_ ⚠getHardware Key - A key that uniquely identifies the hardware.
- SoapySDR
Device_ ⚠getHardware Time - Read the time from the hardware clock on the device.
- SoapySDR
Device_ ⚠getIQ Balance - Get the frontend IQ balance correction.
- SoapySDR
Device_ ⚠getIQ Balance Mode - Get the automatic frontend IQ balance corrections mode.
- SoapySDR
Device_ ⚠getMaster Clock Rate - Get the master clock rate of the device.
- SoapySDR
Device_ ⚠getMaster Clock Rates - Get the range of available master clock rates.
- SoapySDR
Device_ ⚠getNative Device Handle - A handle to the native device used by the driver.
- SoapySDR
Device_ ⚠getNative Stream Format - Get the hardware’s native stream format for this channel.
- SoapySDR
Device_ ⚠getNum Channels - Get a number of channels given the streaming direction
- SoapySDR
Device_ ⚠getNum Direct Access Buffers - How many direct access buffers can the stream provide?
- SoapySDR
Device_ ⚠getReference Clock Rate - Get the reference clock rate of the device.
- SoapySDR
Device_ ⚠getReference Clock Rates - Get the range of available reference clock rates.
- SoapySDR
Device_ ⚠getSample Rate - Get the baseband sample rate of the chain.
- SoapySDR
Device_ ⚠getSample Rate Range - Get the range of possible baseband sample rates.
- SoapySDR
Device_ ⚠getSensor Info - Get meta-information about a sensor.
- SoapySDR
Device_ ⚠getSetting Info - Describe the allowed keys and values used for settings.
- SoapySDR
Device_ ⚠getSetting Info With Key - Get information on a specific setting.
- SoapySDR
Device_ ⚠getStream Args Info - Query the argument info description for stream args.
- SoapySDR
Device_ ⚠getStream Formats - Query a list of the available stream formats.
- SoapySDR
Device_ ⚠getStreamMTU - Get the stream’s maximum transmission unit (MTU) in number of elements.
- SoapySDR
Device_ ⚠getTime Source - Get the time source of the device
- SoapySDR
Device_ ⚠hasDC Offset - Does the device support frontend DC offset correction?
- SoapySDR
Device_ ⚠hasDC Offset Mode - Does the device support automatic DC offset corrections?
- SoapySDR
Device_ ⚠hasFrequency Correction - Does the device support frontend frequency correction?
- SoapySDR
Device_ ⚠hasGain Mode - Does the device support automatic gain control?
- SoapySDR
Device_ ⚠hasHardware Time - Does this device have a hardware clock?
- SoapySDR
Device_ ⚠hasIQ Balance - Does the device support frontend IQ balance correction?
- SoapySDR
Device_ ⚠hasIQ Balance Mode - Does the device support automatic frontend IQ balance correction?
- SoapySDR
Device_ ⚠last Error - Get the last error message after a device call fails.
- SoapySDR
Device_ ⚠last Status - Get the last status code after a Device API call.
- SoapySDR
Device_ ⚠list Antennas - Get a list of available antennas to select on a given chain.
- SoapySDR
Device_ ⚠list Bandwidths - Get the range of possible baseband filter widths.
- SoapySDR
Device_ ⚠list Channel Sensors - List the available channel readback sensors.
- SoapySDR
Device_ ⚠list Clock Sources - Get the list of available clock sources.
- SoapySDR
Device_ ⚠list Frequencies - List available tunable elements in the chain.
- SoapySDR
Device_ ⚠listGPIO Banks - Get a list of available GPIO banks by name.
- SoapySDR
Device_ ⚠list Gains - List available amplification elements.
- SoapySDR
Device_ ⚠list Register Interfaces - Get a list of available register interfaces by name.
- SoapySDR
Device_ ⚠list Sample Rates - Get the range of possible baseband sample rates.
- SoapySDR
Device_ ⚠list Sensors - List the available global readback sensors.
- SoapySDR
Device_ ⚠list Time Sources - Get the list of available time sources.
- SoapySDR
Device_ ⚠listUAR Ts - Enumerate the available UART devices.
- SoapySDR
Device_ ⚠make - Make a new Device object given device construction args.
- SoapySDR
Device_ ⚠make StrArgs - Make a new Device object given device construction args.
- SoapySDR
Device_ ⚠make_ list - Create a list of devices from a list of construction arguments.
- SoapySDR
Device_ ⚠make_ list StrArgs - Create a list of devices from a list of construction arguments.
- SoapySDR
Device_ ⚠read Channel Sensor - Readback a channel sensor given the name.
- SoapySDR
Device_ ⚠read Channel Setting - Read an arbitrary channel setting on the device.
- SoapySDR
Device_ ⚠readGPIO - Readback the value of a GPIO bank.
- SoapySDR
Device_ ⚠readGPIO Dir - Read the data direction of a GPIO bank.
- SoapySDR
Device_ ⚠read I2C - Read from an available I2C slave.
- SoapySDR
Device_ ⚠read Register - Read a register on the device given the interface name.
- SoapySDR
Device_ ⚠read Registers - Read a memory block on the device given the interface name.
- SoapySDR
Device_ ⚠read Sensor - Readback a global sensor given the name.
- SoapySDR
Device_ ⚠read Setting - Read an arbitrary setting on the device.
- SoapySDR
Device_ ⚠read Stream - Read elements from a stream for reception.
- SoapySDR
Device_ ⚠read Stream Status - Readback status information about a stream.
- SoapySDR
Device_ ⚠readUART - Read bytes from a UART until timeout or newline.
- SoapySDR
Device_ ⚠release Read Buffer - Release an acquired buffer back to the receive stream.
- SoapySDR
Device_ ⚠release Write Buffer - Release an acquired buffer back to the transmit stream.
- SoapySDR
Device_ ⚠setAntenna - Set the selected antenna on a chain.
- SoapySDR
Device_ ⚠setBandwidth - Set the baseband filter width of the chain.
- SoapySDR
Device_ ⚠setClock Source - Set the clock source on the device
- SoapySDR
Device_ ⚠setCommand Time - Set the time of subsequent configuration calls.
- SoapySDR
Device_ ⚠setDC Offset - Set the frontend DC offset correction.
- SoapySDR
Device_ ⚠setDC Offset Mode - Set the automatic DC offset corrections mode.
- SoapySDR
Device_ ⚠setFrequency - Set the center frequency of the chain.
- SoapySDR
Device_ ⚠setFrequency Component - Tune the center frequency of the specified element.
- SoapySDR
Device_ ⚠setFrequency Correction - Fine tune the frontend frequency correction.
- SoapySDR
Device_ ⚠setFrontend Mapping - Set the frontend mapping of available DSP units to RF frontends.
- SoapySDR
Device_ ⚠setGain - Set the overall amplification in a chain.
- SoapySDR
Device_ ⚠setGain Element - Set the value of a amplification element in a chain.
- SoapySDR
Device_ ⚠setGain Mode - Set the automatic gain mode on the chain.
- SoapySDR
Device_ ⚠setHardware Time - Write the time to the hardware clock on the device.
- SoapySDR
Device_ ⚠setIQ Balance - Set the frontend IQ balance correction.
- SoapySDR
Device_ ⚠setIQ Balance Mode - Set the automatic frontend IQ balance correction.
- SoapySDR
Device_ ⚠setMaster Clock Rate - Set the master clock rate of the device.
- SoapySDR
Device_ ⚠setReference Clock Rate - Set the reference clock rate of the device.
- SoapySDR
Device_ ⚠setSample Rate - Set the baseband sample rate of the chain.
- SoapySDR
Device_ ⚠setTime Source - Set the time source on the device
- SoapySDR
Device_ ⚠setup Stream - Initialize a stream given a list of channels and stream arguments.
- SoapySDR
Device_ ⚠transactSPI - Perform a SPI transaction and return the result.
- SoapySDR
Device_ ⚠unmake - Unmake or release a device object handle.
- SoapySDR
Device_ ⚠unmake_ list - Unmake or release a list of device handles
- SoapySDR
Device_ ⚠write Channel Setting - Write an arbitrary channel setting on the device.
- SoapySDR
Device_ ⚠writeGPIO - Write the value of a GPIO bank.
- SoapySDR
Device_ ⚠writeGPIO Dir - Write the data direction of a GPIO bank.
- SoapySDR
Device_ ⚠writeGPIO DirMasked - Write the data direction of a GPIO bank with modification mask.
- SoapySDR
Device_ ⚠writeGPIO Masked - Write the value of a GPIO bank with modification mask.
- SoapySDR
Device_ ⚠write I2C - Write to an available I2C slave.
- SoapySDR
Device_ ⚠write Register - Write a register on the device given the interface name.
- SoapySDR
Device_ ⚠write Registers - Write a memory block on the device given the interface name.
- SoapySDR
Device_ ⚠write Setting - Write an arbitrary setting on the device.
- SoapySDR
Device_ ⚠write Stream - Write elements to a stream for transmission.
- SoapySDR
Device_ ⚠writeUART - Write data to a UART device.
- SoapySDR
Kwargs ⚠List_ clear - Clear a list of kwargs structures.
- SoapySDR
Kwargs_ ⚠clear - Clear the contents of a kwargs structure.
- SoapySDR
Kwargs_ ⚠from String - Convert a markup string to a key-value map.
- SoapySDR
Kwargs_ ⚠get - Get a value given a key in a kwargs structure.
- SoapySDR
Kwargs_ ⚠set - Set a key/value pair in a kwargs structure.
- SoapySDR
Kwargs_ ⚠toString - Convert a key-value map to a markup string.
- SoapySDR
Strings_ ⚠clear - Clear the contents of a list of string
- SoapySDR_
errTo ⚠Str - Convert a error code to a string for printing purposes.
- SoapySDR_
format ⚠ToSize - Get the size of a single element in the specified format.
- SoapySDR_
free ⚠ - Free a pointer allocated by SoapySDR.
- SoapySDR_
getABI ⚠Version - Get the ABI version string that the library was built against.
- SoapySDR_
getAPI ⚠Version - Get the SoapySDR library API version as a string.
- SoapySDR_
getLib ⚠Version - Get the library version and build information string.
- SoapySDR_
getLoader ⚠Result - List all registration loader errors for a given module path.
- SoapySDR_
getLog ⚠Level - Get the log level threshold.
- SoapySDR_
getModule ⚠Version - Get a version string for the specified module.
- SoapySDR_
getRoot ⚠Path - Query the root installation path
- SoapySDR_
list ⚠Modules - List all modules found in default path.
- SoapySDR_
list ⚠Modules Path - List all modules found in the given path.
- SoapySDR_
list ⚠Search Paths - The list of paths automatically searched by loadModules().
- SoapySDR_
load ⚠Module - Load a single module given its file system path.
- SoapySDR_
load ⚠Modules - Load the support modules installed on this system.
- SoapySDR_
log ⚠ - Send a message to the registered logger.
- SoapySDR_
register ⚠LogHandler - Register a new system log handler.
- SoapySDR_
setLog ⚠Level - Set the log level threshold.
- SoapySDR_
ticks ⚠ToTime Ns - Convert a tick count into a time in nanoseconds using the tick rate.
- SoapySDR_
time ⚠NsTo Ticks - Convert a time in nanoseconds into a tick count using the tick rate.
- SoapySDR_
unload ⚠Module - Unload a module that was loaded with loadModule().
- SoapySDR_
unload ⚠Modules - Unload all currently loaded support modules.
Type Aliases§
- SoapySDR
ArgInfo Type - Possible data types for argument info
- SoapySDR
LogHandler - Typedef for the registered log handler function.
- SoapySDR
LogLevel - The available priority levels for log messages.