from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SueCls:
"""Sue commands group definition. 2 total commands, 0 Subgroups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sue", core, parent)
[docs] def get_bb_selector(self) -> int:
"""SCPI: [SOURce<HW>]:BB:NR5G:TCW:RTF:SUE:BBSelector \n
Snippet: value: int = driver.source.bb.nr5G.tcw.rtf.sue.get_bb_selector() \n
Defines which baseband selector index is used in the serial messages to address the baseband for a stationary UE. \n
:return: suebb_selector: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:TCW:RTF:SUE:BBSelector?')
return Conversions.str_to_int(response)
[docs] def set_bb_selector(self, suebb_selector: int) -> None:
"""SCPI: [SOURce<HW>]:BB:NR5G:TCW:RTF:SUE:BBSelector \n
Snippet: driver.source.bb.nr5G.tcw.rtf.sue.set_bb_selector(suebb_selector = 1) \n
Defines which baseband selector index is used in the serial messages to address the baseband for a stationary UE. \n
:param suebb_selector: integer Range: 0 to 3
"""
param = Conversions.decimal_value_to_str(suebb_selector)
self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:TCW:RTF:SUE:BBSelector {param}')
# noinspection PyTypeChecker
[docs] def get_connector(self) -> enums.FeedbackConnectorAll:
"""SCPI: [SOURce<HW>]:BB:NR5G:TCW:RTF:SUE:CONNector \n
Snippet: value: enums.FeedbackConnectorAll = driver.source.bb.nr5G.tcw.rtf.sue.get_connector() \n
Queries the connector used for the real-time feedback of the stationary UE. Note that the result of the query is always
LOCal, because feedback always uses the local connector. \n
:return: sue_connector: LOCal
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:TCW:RTF:SUE:CONNector?')
return Conversions.str_to_scalar_enum(response, enums.FeedbackConnectorAll)
[docs] def set_connector(self, sue_connector: enums.FeedbackConnectorAll) -> None:
"""SCPI: [SOURce<HW>]:BB:NR5G:TCW:RTF:SUE:CONNector \n
Snippet: driver.source.bb.nr5G.tcw.rtf.sue.set_connector(sue_connector = enums.FeedbackConnectorAll.LOCal) \n
Queries the connector used for the real-time feedback of the stationary UE. Note that the result of the query is always
LOCal, because feedback always uses the local connector. \n
:param sue_connector: No help available
"""
param = Conversions.enum_scalar_to_str(sue_connector, enums.FeedbackConnectorAll)
self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:TCW:RTF:SUE:CONNector {param}')