Source code for RsSmw.Implementations.Source.Bb.Eutra.Downlink.Mimo.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: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

	# noinspection PyTypeChecker
[docs] def get_config(self) -> enums.EutraNbMimoConf: """ ``[SOURce<HW>]:BB:EUTRa:DL:MIMO:NIOT:CONFig`` \n Snippet: ``value: enums.EutraNbMimoConf = driver.source.bb.eutra.downlink.mimo.niot.get_config()`` \n Set the number of transmit antennas used for the simulated NB-IoT system. :return: nbiot_mimo_conf: TX2 | TX1 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MIMO:NIOT:CONFig?') return Conversions.str_to_scalar_enum(response, enums.EutraNbMimoConf)
[docs] def set_config(self, nbiot_mimo_conf: enums.EutraNbMimoConf) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:MIMO:NIOT:CONFig`` \n Snippet: ``driver.source.bb.eutra.downlink.mimo.niot.set_config(nbiot_mimo_conf = enums.EutraNbMimoConf.TX1)`` \n Set the number of transmit antennas used for the simulated NB-IoT system. :param nbiot_mimo_conf: TX2 | TX1 """ param = Conversions.enum_scalar_to_str(nbiot_mimo_conf, enums.EutraNbMimoConf) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MIMO:NIOT:CONFig {param}')