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

Structure containing main board information. More...

#include <SDRHardwareInformation.hxx>

Collaboration diagram for SDRMainBoardInfo:

Public Member Functions

void merge (const SDRMainBoardInfo &other)
 Merge another board's information into this one.
 
size_t getTotalBoardCount () const
 Get total number of boards.
 
void buildInverseMap ()
 Build inverse mapping of identifiers.
 

Public Attributes

std::string name
 
std::string serial {}
 
std::string model {}
 
std::string resource {}
 
std::string fpgaImage {}
 
PicoScenesDeviceType deviceType {PicoScenesDeviceType::Unknown}
 
PicoScenesDeviceSubtype deviceSubtype {PicoScenesDeviceSubtype::Unknown}
 
uint16_t deviceOrder {0}
 
SDRConnectionProfile connectionProfile
 
std::map< std::string, std::string > inverseMap {}
 
std::vector< SDRMainBoardInfootherBoards {}
 

Detailed Description

Structure containing main board information.

Definition at line 121 of file SDRHardwareInformation.hxx.

Member Function Documentation

◆ buildInverseMap()

void SDRMainBoardInfo::buildInverseMap ( )
inline

◆ getTotalBoardCount()

size_t SDRMainBoardInfo::getTotalBoardCount ( ) const
inline

Get total number of boards.

Returns
Total number of boards including this one and connected ones

Definition at line 147 of file SDRHardwareInformation.hxx.

References otherBoards.

Referenced by SDRDeviceHardwareInformation::getHardwareBoardCount().

◆ merge()

void SDRMainBoardInfo::merge ( const SDRMainBoardInfo other)
inline

Merge another board's information into this one.

Parameters
otherBoard information to merge

Definition at line 138 of file SDRHardwareInformation.hxx.

References otherBoards.

Member Data Documentation

◆ connectionProfile

SDRConnectionProfile SDRMainBoardInfo::connectionProfile

Connection profile

Definition at line 130 of file SDRHardwareInformation.hxx.

Referenced by buildInverseMap().

◆ deviceOrder

uint16_t SDRMainBoardInfo::deviceOrder {0}

Order in the original device list

Definition at line 129 of file SDRHardwareInformation.hxx.

◆ deviceSubtype

PicoScenesDeviceSubtype SDRMainBoardInfo::deviceSubtype {PicoScenesDeviceSubtype::Unknown}

Device subtype

Definition at line 128 of file SDRHardwareInformation.hxx.

◆ deviceType

PicoScenesDeviceType SDRMainBoardInfo::deviceType {PicoScenesDeviceType::Unknown}

Device type

Definition at line 127 of file SDRHardwareInformation.hxx.

◆ fpgaImage

std::string SDRMainBoardInfo::fpgaImage {}

FPGA image name

Definition at line 126 of file SDRHardwareInformation.hxx.

◆ inverseMap

std::map<std::string, std::string> SDRMainBoardInfo::inverseMap {}

Maps identifiers to their types

Definition at line 131 of file SDRHardwareInformation.hxx.

Referenced by buildInverseMap().

◆ model

std::string SDRMainBoardInfo::model {}

Board model

Definition at line 124 of file SDRHardwareInformation.hxx.

◆ name

std::string SDRMainBoardInfo::name

Board name

Definition at line 122 of file SDRHardwareInformation.hxx.

Referenced by buildInverseMap().

◆ otherBoards

std::vector<SDRMainBoardInfo> SDRMainBoardInfo::otherBoards {}

◆ resource

std::string SDRMainBoardInfo::resource {}

Board resource identifier

Definition at line 125 of file SDRHardwareInformation.hxx.

Referenced by buildInverseMap().

◆ serial

std::string SDRMainBoardInfo::serial {}

Board serial number

Definition at line 123 of file SDRHardwareInformation.hxx.

Referenced by buildInverseMap().


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