Source code for RsSmw.Implementations.Source.Bb.Eutra.Uplink.Prach.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: 6
	| Subgroups: 1
	| Direct child commands: 1
	"""

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

	@property
	def cfg(self):
		"""
		| Commands in total: 5
		| Subgroups: 5
		| Direct child commands: 0
		"""
		if not hasattr(self, '_cfg'):
			from .Cfg import CfgCls
			self._cfg = CfgCls(self._core, self._cmd_group)
		return self._cfg

	# noinspection PyTypeChecker
[docs] def get_pfmt(self) -> enums.EutraPracNbiotPreambleFormat: """ ``[SOURce<HW>]:BB:EUTRa:UL:PRACh:NIOT:PFMT`` \n Snippet: ``value: enums.EutraPracNbiotPreambleFormat = driver.source.bb.eutra.uplink.prach.niot.get_pfmt()`` \n Select the preamble format. :return: preamble_format: F0 | F1 | 0| 1 | F2 | F0A | F1A 0 | 1 backward compatibility; use F0 | F1 instead. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PRACh:NIOT:PFMT?') return Conversions.str_to_scalar_enum(response, enums.EutraPracNbiotPreambleFormat)
[docs] def set_pfmt(self, preamble_format: enums.EutraPracNbiotPreambleFormat) -> None: """ ``[SOURce<HW>]:BB:EUTRa:UL:PRACh:NIOT:PFMT`` \n Snippet: ``driver.source.bb.eutra.uplink.prach.niot.set_pfmt(preamble_format = enums.EutraPracNbiotPreambleFormat._0)`` \n Select the preamble format. :param preamble_format: F0 | F1 | 0| 1 | F2 | F0A | F1A 0 | 1 backward compatibility; use F0 | F1 instead. """ param = Conversions.enum_scalar_to_str(preamble_format, enums.EutraPracNbiotPreambleFormat) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:PRACh:NIOT:PFMT {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