Source code for RsSmw.Implementations.Source.Bb.Eutra.Downlink.Sync.Niot

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


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

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

[docs] def get_nppwr(self) -> float: """ ``[SOURce<HW>]:BB:EUTRa:DL:SYNC:NIOT:NPPWr`` \n Snippet: ``value: float = driver.source.bb.eutra.downlink.sync.niot.get_nppwr()`` \n Sets the power of the NPSS/NSSS allocations. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:SYNC:NIOT:NPPWr?') return Conversions.str_to_float(response)
[docs] def set_nppwr(self, np_sync_power: float) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:SYNC:NIOT:NPPWr`` \n Snippet: ``driver.source.bb.eutra.downlink.sync.niot.set_nppwr(np_sync_power = 1.0)`` \n Sets the power of the NPSS/NSSS allocations. :param np_sync_power: float Range: -80 to 10 """ param = Conversions.decimal_value_to_str(np_sync_power) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:SYNC:NIOT:NPPWr {param}')
[docs] def get_ns_pwr(self) -> float: """ ``[SOURce<HW>]:BB:EUTRa:DL:SYNC:NIOT:NSPWr`` \n Snippet: ``value: float = driver.source.bb.eutra.downlink.sync.niot.get_ns_pwr()`` \n Sets the power of the NPSS/NSSS allocations. :return: ns_sync_power: float Range: -80 to 10 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:SYNC:NIOT:NSPWr?') return Conversions.str_to_float(response)
[docs] def set_ns_pwr(self, ns_sync_power: float) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:SYNC:NIOT:NSPWr`` \n Snippet: ``driver.source.bb.eutra.downlink.sync.niot.set_ns_pwr(ns_sync_power = 1.0)`` \n Sets the power of the NPSS/NSSS allocations. :param ns_sync_power: float Range: -80 to 10 """ param = Conversions.decimal_value_to_str(ns_sync_power) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:SYNC:NIOT:NSPWr {param}')
# noinspection PyTypeChecker
[docs] def get_tx_antenna(self) -> enums.EutraNbiotSimAnt: """ ``[SOURce<HW>]:BB:EUTRa:DL:SYNC:NIOT:TXANtenna`` \n Snippet: ``value: enums.EutraNbiotSimAnt = driver.source.bb.eutra.downlink.sync.niot.get_tx_antenna()`` \n Defines on which antenna the NPSS/NSSS are transmitted. :return: np_ns_sync_tx_ant: NONE | ANT1 | ANT2 | ALL """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:SYNC:NIOT:TXANtenna?') return Conversions.str_to_scalar_enum(response, enums.EutraNbiotSimAnt)
[docs] def set_tx_antenna(self, np_ns_sync_tx_ant: enums.EutraNbiotSimAnt) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:SYNC:NIOT:TXANtenna`` \n Snippet: ``driver.source.bb.eutra.downlink.sync.niot.set_tx_antenna(np_ns_sync_tx_ant = enums.EutraNbiotSimAnt.ALL)`` \n Defines on which antenna the NPSS/NSSS are transmitted. :param np_ns_sync_tx_ant: NONE | ANT1 | ANT2 | ALL """ param = Conversions.enum_scalar_to_str(np_ns_sync_tx_ant, enums.EutraNbiotSimAnt) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:SYNC:NIOT:TXANtenna {param}')