PicoScenes API Docs
 
Loading...
Searching...
No Matches
SDRConnectionProfile Struct Reference

Structure containing connection profile information for SDR devices. More...

#include <SDRHardwareInformation.hxx>

Public Types

enum class  SDRConnectionType : uint8_t { Ethernet = 0 , USB = 1 , PCIe = 2 , UnSpecified = 255 }
 Enumeration for SDR connection types. More...
 

Public Member Functions

const SDREthernetConnectionInterfacegetPrimaryInterface () const
 Get the primary Ethernet interface.
 
bool isDualConnection () const
 Check if device has dual connection.
 

Public Attributes

SDRConnectionType connectionType {SDRConnectionType::UnSpecified}
 
std::vector< SDREthernetConnectionInterfaceethernetInterfaces {}
 
SDRDeviceCombinationType combinationType {SDRDeviceCombinationType::None}
 
uint8_t combinedDeviceCount {1}
 
uint8_t deviceIndexInCombination {0}
 
std::string combinationIdentifier {}
 

Detailed Description

Structure containing connection profile information for SDR devices.

Definition at line 44 of file SDRHardwareInformation.hxx.

Member Enumeration Documentation

◆ SDRConnectionType

enum class SDRConnectionProfile::SDRConnectionType : uint8_t
strong

Enumeration for SDR connection types.

Enumerator
Ethernet 

Ethernet connection

USB 

USB connection

PCIe 

PCIe connection

UnSpecified 

Unspecified connection type

Definition at line 48 of file SDRHardwareInformation.hxx.

Member Function Documentation

◆ getPrimaryInterface()

const SDREthernetConnectionInterface * SDRConnectionProfile::getPrimaryInterface ( ) const
inline

Get the primary Ethernet interface.

Returns
Pointer to primary interface or nullptr if not found

Definition at line 67 of file SDRHardwareInformation.hxx.

References connectionType, Ethernet, and ethernetInterfaces.

◆ isDualConnection()

bool SDRConnectionProfile::isDualConnection ( ) const
inline

Check if device has dual connection.

Returns
true if device has multiple interfaces

Definition at line 81 of file SDRHardwareInformation.hxx.

References ethernetInterfaces.

Member Data Documentation

◆ combinationIdentifier

std::string SDRConnectionProfile::combinationIdentifier {}

Unique identifier for this combination

Definition at line 61 of file SDRHardwareInformation.hxx.

◆ combinationType

SDRDeviceCombinationType SDRConnectionProfile::combinationType {SDRDeviceCombinationType::None}

Type of device combination

Definition at line 58 of file SDRHardwareInformation.hxx.

◆ combinedDeviceCount

uint8_t SDRConnectionProfile::combinedDeviceCount {1}

Total number of devices in the combination

Definition at line 59 of file SDRHardwareInformation.hxx.

◆ connectionType

SDRConnectionType SDRConnectionProfile::connectionType {SDRConnectionType::UnSpecified}

Type of connection

Definition at line 55 of file SDRHardwareInformation.hxx.

Referenced by SDRMainBoardInfo::buildInverseMap(), and getPrimaryInterface().

◆ deviceIndexInCombination

uint8_t SDRConnectionProfile::deviceIndexInCombination {0}

Index of this device in the combination (0 for primary)

Definition at line 60 of file SDRHardwareInformation.hxx.

◆ ethernetInterfaces

std::vector<SDREthernetConnectionInterface> SDRConnectionProfile::ethernetInterfaces {}

List of Ethernet interfaces

Definition at line 56 of file SDRHardwareInformation.hxx.

Referenced by SDRMainBoardInfo::buildInverseMap(), getPrimaryInterface(), and isDualConnection().


The documentation for this struct was generated from the following file: