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

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


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

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

[docs] def get_tsrs(self) -> bool: """ ``[SOURce<HW>]:BB:NR5G:TCW:SUE:TSRS`` \n Snippet: ``value: bool = driver.source.bb.nr5G.tcw.sue.get_tsrs()`` \n Turns transmission of the sounding reference signal for 3GPP test cases on and off. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:TCW:SUE:TSRS?') return Conversions.str_to_bool(response)
[docs] def set_tsrs(self, sue_transmit_srs: bool) -> None: """ ``[SOURce<HW>]:BB:NR5G:TCW:SUE:TSRS`` \n Snippet: ``driver.source.bb.nr5G.tcw.sue.set_tsrs(sue_transmit_srs = False)`` \n Turns transmission of the sounding reference signal for 3GPP test cases on and off. :param sue_transmit_srs: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(sue_transmit_srs) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:TCW:SUE:TSRS {param}')