Source code for RsSmw.Implementations.Source.Bb.Nr5G.Tcw.Rtf.Sue

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SueCls:
	"""
	| Commands in total: 2
	| Subgroups: 0
	| Direct child commands: 2
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("sue", core, parent)

[docs] def get_bb_selector(self) -> int: """ ``[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. """ 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: """ ``[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. :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: """ ``[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. :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: """ ``[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. """ param = Conversions.enum_scalar_to_str(sue_connector, enums.FeedbackConnectorAll) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:TCW:RTF:SUE:CONNector {param}')