PicoScenes API Docs
Loading...
Searching...
No Matches
SoapySDRUtils.hxx
Go to the documentation of this file.
1
//
2
// Created by Zhiping Jiang on 3/30/22.
3
//
4
5
#ifndef PICOSCENES_PLATFORM_SOAPYSDRUTILS_HXX
6
#define PICOSCENES_PLATFORM_SOAPYSDRUTILS_HXX
7
8
#include <optional>
9
#include <SoapySDR/Device.hpp>
10
#include <SoapySDR/Types.hpp>
11
12
enum class
SoapySDRType
{
13
HackRFOne
,
14
LimeSDR
,
15
BladeRF
,
16
};
17
18
struct
SoapySDRDeviceIdentification
{
19
std::string
serialNumber
;
20
std::string
name
;
21
std::string
ipAddress
;
22
std::string
resource
;
23
SoapySDRType
type
;
24
std::string
typeString
;
25
26
std::map<std::string, std::string>
inverseMap
;
27
};
28
29
namespace
SoapySDRUtils
{
30
31
bool
isSoapySDRDeviceName
(
const
std::string &deviceName);
32
33
const
std::vector<std::map<std::string, std::string>> &
findAllSoapySDRCompatibleDevices
();
34
35
const
std::map<std::string, std::map<std::string, std::string>> &
soapySDRDeviceNamingMap
();
36
37
const
std::vector<std::string> &
getPicoScenesDeviceNames4AllSoapySDRDevice
();
38
39
std::optional<std::map<std::string, std::string>>
getDeviceInformation
(
const
std::string &deviceName);
40
41
std::optional<std::array<uint8_t, 6>>
resolveMACAddress
(
const
std::string &deviceName);
42
43
std::string
determineTransferType
(
const
SoapySDR::Device *sdr);
44
45
}
46
#endif
//PICOSCENES_PLATFORM_SOAPYSDRUTILS_HXX
SoapySDRType
SoapySDRType
Definition
SoapySDRUtils.hxx:12
SoapySDRType::BladeRF
@ BladeRF
SoapySDRType::HackRFOne
@ HackRFOne
SoapySDRType::LimeSDR
@ LimeSDR
SoapySDRUtils
Definition
SoapySDRUtils.hxx:29
SoapySDRUtils::findAllSoapySDRCompatibleDevices
const std::vector< std::map< std::string, std::string > > & findAllSoapySDRCompatibleDevices()
SoapySDRUtils::soapySDRDeviceNamingMap
const std::map< std::string, std::map< std::string, std::string > > & soapySDRDeviceNamingMap()
SoapySDRUtils::resolveMACAddress
std::optional< std::array< uint8_t, 6 > > resolveMACAddress(const std::string &deviceName)
SoapySDRUtils::determineTransferType
std::string determineTransferType(const SoapySDR::Device *sdr)
SoapySDRUtils::getDeviceInformation
std::optional< std::map< std::string, std::string > > getDeviceInformation(const std::string &deviceName)
SoapySDRUtils::isSoapySDRDeviceName
bool isSoapySDRDeviceName(const std::string &deviceName)
SoapySDRUtils::getPicoScenesDeviceNames4AllSoapySDRDevice
const std::vector< std::string > & getPicoScenesDeviceNames4AllSoapySDRDevice()
SoapySDRDeviceIdentification
Definition
SoapySDRUtils.hxx:18
SoapySDRDeviceIdentification::name
std::string name
Definition
SoapySDRUtils.hxx:20
SoapySDRDeviceIdentification::resource
std::string resource
Definition
SoapySDRUtils.hxx:22
SoapySDRDeviceIdentification::typeString
std::string typeString
Definition
SoapySDRUtils.hxx:24
SoapySDRDeviceIdentification::serialNumber
std::string serialNumber
Definition
SoapySDRUtils.hxx:19
SoapySDRDeviceIdentification::ipAddress
std::string ipAddress
Definition
SoapySDRUtils.hxx:21
SoapySDRDeviceIdentification::inverseMap
std::map< std::string, std::string > inverseMap
Definition
SoapySDRUtils.hxx:26
SoapySDRDeviceIdentification::type
SoapySDRType type
Definition
SoapySDRUtils.hxx:23
headers
SoapySDRUtils.hxx
Generated by
1.9.8