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
12enum class SoapySDRType {
14 LimeSDR,
15 BladeRF,
16};
17
19 std::string serialNumber;
20 std::string name;
21 std::string ipAddress;
22 std::string resource;
24 std::string typeString;
25
26 std::map<std::string, std::string> inverseMap;
27};
28
29namespace 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
const std::vector< std::map< std::string, std::string > > & findAllSoapySDRCompatibleDevices()
const std::map< std::string, std::map< std::string, std::string > > & soapySDRDeviceNamingMap()
std::optional< std::array< uint8_t, 6 > > resolveMACAddress(const std::string &deviceName)
std::string determineTransferType(const SoapySDR::Device *sdr)
std::optional< std::map< std::string, std::string > > getDeviceInformation(const std::string &deviceName)
bool isSoapySDRDeviceName(const std::string &deviceName)
const std::vector< std::string > & getPicoScenesDeviceNames4AllSoapySDRDevice()
std::map< std::string, std::string > inverseMap