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

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


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

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

	@property
	def alloc(self):
		"""
		| Commands in total: 22
		| Subgroups: 14
		| 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 ccoding(self):
		"""
		| Commands in total: 7
		| Subgroups: 0
		| Direct child commands: 7
		"""
		if not hasattr(self, '_ccoding'):
			from .Ccoding import CcodingCls
			self._ccoding = CcodingCls(self._core, self._cmd_group)
		return self._ccoding

	@property
	def dci(self):
		"""
		| Commands in total: 36
		| 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 gap(self):
		"""
		| Commands in total: 4
		| Subgroups: 2
		| Direct child commands: 2
		"""
		if not hasattr(self, '_gap'):
			from .Gap import GapCls
			self._gap = GapCls(self._core, self._cmd_group)
		return self._gap

	@property
	def lteCell(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_lteCell'):
			from .LteCell import LteCellCls
			self._lteCell = LteCellCls(self._core, self._cmd_group)
		return self._lteCell

	@property
	def nprs(self):
		"""
		| Commands in total: 12
		| Subgroups: 3
		| Direct child commands: 8
		"""
		if not hasattr(self, '_nprs'):
			from .Nprs import NprsCls
			self._nprs = NprsCls(self._core, self._cmd_group)
		return self._nprs

	@property
	def pag(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_pag'):
			from .Pag import PagCls
			self._pag = PagCls(self._core, self._cmd_group)
		return self._pag

	@property
	def rand(self):
		"""
		| Commands in total: 3
		| Subgroups: 0
		| Direct child commands: 3
		"""
		if not hasattr(self, '_rand'):
			from .Rand import RandCls
			self._rand = RandCls(self._core, self._cmd_group)
		return self._rand

	@property
	def wus(self):
		"""
		| Commands in total: 7
		| Subgroups: 0
		| Direct child commands: 7
		"""
		if not hasattr(self, '_wus'):
			from .Wus import WusCls
			self._wus = WusCls(self._core, self._cmd_group)
		return self._wus

[docs] def get_id(self) -> int: """ ``[SOURce<HW>]:BB:EUTRa:DL:NIOT:ID`` \n Snippet: ``value: int = driver.source.bb.eutra.downlink.niot.get_id()`` \n Queries the physical layer identity. :return: identity: integer Range: 0 to 111 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:ID?') return Conversions.str_to_int(response)
[docs] def get_nalloc(self) -> int: """ ``[SOURce<HW>]:BB:EUTRa:DL:NIOT:NALLoc`` \n Snippet: ``value: int = driver.source.bb.eutra.downlink.niot.get_nalloc()`` \n Queries the number of NB-IoT allocations. :return: nb_iot_nalloc: integer Range: 0 to 42 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:NALLoc?') return Conversions.str_to_int(response)
[docs] def get_puncture(self) -> bool: """ ``[SOURce<HW>]:BB:EUTRa:DL:NIOT:PUNCture`` \n Snippet: ``value: bool = driver.source.bb.eutra.downlink.niot.get_puncture()`` \n Punctures the LTE signal at the NB-IoT in-band or guard band carriers. :return: puncture_inband: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:PUNCture?') return Conversions.str_to_bool(response)
[docs] def set_puncture(self, puncture_inband: bool) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:NIOT:PUNCture`` \n Snippet: ``driver.source.bb.eutra.downlink.niot.set_puncture(puncture_inband = False)`` \n Punctures the LTE signal at the NB-IoT in-band or guard band carriers. :param puncture_inband: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(puncture_inband) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:PUNCture {param}')
def clone(self) -> 'NiotCls': """ 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 = NiotCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group