Source code for RsSmw.Implementations.Source.Bb.Eutra.Downlink.Emtc

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class EmtcCls:
	"""
	| Commands in total: 107
	| Subgroups: 5
	| Direct child commands: 4
	"""

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

	@property
	def alloc(self):
		"""
		| Commands in total: 38
		| Subgroups: 19
		| Direct child commands: 0
		"""
		if not hasattr(self, '_alloc'):
			from .Alloc import AllocCls
			self._alloc = AllocCls(self._core, self._cmd_group)
		return self._alloc

	@property
	def bmp(self):
		"""
		| Commands in total: 7
		| Subgroups: 3
		| Direct child commands: 4
		"""
		if not hasattr(self, '_bmp'):
			from .Bmp import BmpCls
			self._bmp = BmpCls(self._core, self._cmd_group)
		return self._bmp

	@property
	def dci(self):
		"""
		| Commands in total: 44
		| Subgroups: 1
		| Direct child commands: 2
		"""
		if not hasattr(self, '_dci'):
			from .Dci import DciCls
			self._dci = DciCls(self._core, self._cmd_group)
		return self._dci

	@property
	def nb(self):
		"""
		| Commands in total: 9
		| Subgroups: 0
		| Direct child commands: 9
		"""
		if not hasattr(self, '_nb'):
			from .Nb import NbCls
			self._nb = NbCls(self._core, self._cmd_group)
		return self._nb

	@property
	def ssp(self):
		"""
		| Commands in total: 5
		| Subgroups: 0
		| Direct child commands: 5
		"""
		if not hasattr(self, '_ssp'):
			from .Ssp import SspCls
			self._ssp = SspCls(self._core, self._cmd_group)
		return self._ssp

[docs] def get_nalloc(self) -> int: """ ``[SOURce<HW>]:BB:EUTRa:DL:EMTC:NALLoc`` \n Snippet: ``value: int = driver.source.bb.eutra.downlink.emtc.get_nalloc()`` \n Queries the number of automatically configured allocations. :return: no_alloc: integer Range: 0 to 100 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NALLoc?') return Conversions.str_to_int(response)
[docs] def get_nn_bands(self) -> int: """ ``[SOURce<HW>]:BB:EUTRa:DL:EMTC:NNBands`` \n Snippet: ``value: int = driver.source.bb.eutra.downlink.emtc.get_nn_bands()`` \n Queries the number of narrowbands. :return: num_narrowbands: integer Range: 0 to 18 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NNBands?') return Conversions.str_to_int(response)
[docs] def get_nw_bands(self) -> int: """ ``[SOURce<HW>]:BB:EUTRa:DL:EMTC:NWBands`` \n Snippet: ``value: int = driver.source.bb.eutra.downlink.emtc.get_nw_bands()`` \n Queries the number of widebands. :return: num_widebands: integer Range: 0 to 4 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NWBands?') return Conversions.str_to_int(response)
# noinspection PyTypeChecker
[docs] def get_wbcfg(self) -> enums.EutraEmtcPdschWideband: """ ``[SOURce<HW>]:BB:EUTRa:DL:EMTC:WBCFg`` \n Snippet: ``value: enums.EutraEmtcPdschWideband = driver.source.bb.eutra.downlink.emtc.get_wbcfg()`` \n If enabled, the available channel bandwidth is split into eMTC widebands with the selected bandwidth. :return: wideband_cfg: OFF | BW5_00 | BW20_00 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:WBCFg?') return Conversions.str_to_scalar_enum(response, enums.EutraEmtcPdschWideband)
[docs] def set_wbcfg(self, wideband_cfg: enums.EutraEmtcPdschWideband) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:EMTC:WBCFg`` \n Snippet: ``driver.source.bb.eutra.downlink.emtc.set_wbcfg(wideband_cfg = enums.EutraEmtcPdschWideband.BW20_00)`` \n If enabled, the available channel bandwidth is split into eMTC widebands with the selected bandwidth. :param wideband_cfg: OFF | BW5_00 | BW20_00 """ param = Conversions.enum_scalar_to_str(wideband_cfg, enums.EutraEmtcPdschWideband) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:WBCFg {param}')
def clone(self) -> 'EmtcCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = EmtcCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group