PicoScenes API Docs
 
Loading...
Searching...
No Matches
SoapySDRUtils Namespace Reference

Functions

bool isSoapySDRDeviceName (const std::string &deviceName)
 Checks if a given device name is a SoapySDR device name.
 
const std::vector< std::map< std::string, std::string > > & findAllSoapySDRCompatibleDevices ()
 Finds all compatible SoapySDR devices.
 
const std::map< std::string, std::map< std::string, std::string > > & soapySDRDeviceNamingMap ()
 Gets a map of SoapySDR device names to their information.
 
const std::vector< std::string > & getPicoScenesDeviceNames4AllSoapySDRDevice ()
 Gets the names of all PicoScenes devices for SoapySDR.
 
std::optional< std::map< std::string, std::string > > getDeviceInformation (const std::string &deviceName)
 Gets information about a specific device.
 
std::optional< std::array< uint8_t, 6 > > resolveMACAddress (const std::string &deviceName)
 Resolves the MAC address of a device.
 
std::string determineTransferType (const SoapySDR::Device *sdr)
 Determines the transfer type for a given SoapySDR device.
 

Function Documentation

◆ determineTransferType()

std::string SoapySDRUtils::determineTransferType ( const SoapySDR::Device *  sdr)

Determines the transfer type for a given SoapySDR device.

Parameters
sdrA pointer to the SoapySDR device.
Returns
A string representing the transfer type.
Exceptions
std::runtime_errorif the transfer types for Tx and Rx are different.

◆ findAllSoapySDRCompatibleDevices()

const std::vector< std::map< std::string, std::string > > & SoapySDRUtils::findAllSoapySDRCompatibleDevices ( )

Finds all compatible SoapySDR devices.

Returns
A vector of maps, each containing device information.

◆ getDeviceInformation()

std::optional< std::map< std::string, std::string > > SoapySDRUtils::getDeviceInformation ( const std::string &  deviceName)

Gets information about a specific device.

Parameters
deviceNameThe name of the device.
Returns
An optional map of device information, or nullopt if the device is not found.

◆ getPicoScenesDeviceNames4AllSoapySDRDevice()

const std::vector< std::string > & SoapySDRUtils::getPicoScenesDeviceNames4AllSoapySDRDevice ( )

Gets the names of all PicoScenes devices for SoapySDR.

Returns
A vector of device names.

◆ isSoapySDRDeviceName()

bool SoapySDRUtils::isSoapySDRDeviceName ( const std::string &  deviceName)

Checks if a given device name is a SoapySDR device name.

Parameters
deviceNameThe name of the device to check.
Returns
True if the name is a SoapySDR device name, false otherwise.

◆ resolveMACAddress()

std::optional< std::array< uint8_t, 6 > > SoapySDRUtils::resolveMACAddress ( const std::string &  deviceName)

Resolves the MAC address of a device.

Parameters
deviceNameThe name of the device.
Returns
An optional array of 6 bytes representing the MAC address, or nullopt if not found.

◆ soapySDRDeviceNamingMap()

const std::map< std::string, std::map< std::string, std::string > > & SoapySDRUtils::soapySDRDeviceNamingMap ( )

Gets a map of SoapySDR device names to their information.

Returns
A map where keys are device names and values are maps of device information.