from typing import List
from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal.Types import DataType
from ....Internal.StructBase import StructBase
from ....Internal.ArgStruct import ArgStruct
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Devices:
"""Devices commands group definition. 1 total commands, 0 Sub-groups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._base = CommandsGroup("devices", core, parent)
# noinspection PyTypeChecker
[docs] class CatalogStruct(StructBase):
"""Structure for reading output parameters. Fields: \n
- No_Devices: int: decimal Number of all USB ports, where a connected EUT has been recognized
- Item_Number: List[int]: decimal The number of a list item
- Discovered_Port: List[str]: string Number of the USB port"""
__meta_args_list = [
ArgStruct.scalar_int('No_Devices'),
ArgStruct('Item_Number', DataType.IntegerList, None, False, True, 1),
ArgStruct('Discovered_Port', DataType.StringList, None, False, True, 1)]
def __init__(self):
StructBase.__init__(self, self)
self.No_Devices: int = None
self.Item_Number: List[int] = None
self.Discovered_Port: List[str] = None
[docs] def get_catalog(self) -> CatalogStruct:
"""SCPI: CONFigure:BLUetooth:SIGNaling<Instance>:USBSettings:DEVices:CATalog \n
Snippet: value: CatalogStruct = driver.configure.usbSettings.devices.get_catalog() \n
Displays all EUTs discovered at USB interface. The command is relevant for the direct USB connection ('HW Interface' =
USB) . Results are returned for each connected EUT: <NoDevices>, {1, <DiscoveredPort>}1, ...
, {<NoDevices>, <DiscoveredPort>}<NoDevices> \n
:return: structure: for return value, see the help for CatalogStruct structure arguments.
"""
return self._core.io.query_struct('CONFigure:BLUetooth:SIGNaling<Instance>:USBSettings:DEVices:CATalog?', self.__class__.CatalogStruct())