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

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

	@property
	def celv(self):
		"""
		| Commands in total: 5
		| Subgroups: 5
		| Direct child commands: 0
		"""
		if not hasattr(self, '_celv'):
			from .Celv import CelvCls
			self._celv = CelvCls(self._core, self._cmd_group)
		return self._celv

[docs] def get_hoff(self) -> int: """ ``[SOURce<HW>]:BB:EUTRa:UL:PRACh:EMTC:HOFF`` \n Snippet: ``value: int = driver.source.bb.eutra.uplink.prach.emtc.get_hoff()`` \n Sets a PRACH hopping offset as number of resource blocks (RB) . :return: hopping_offset: integer Range: 1 to 110 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PRACh:EMTC:HOFF?') return Conversions.str_to_int(response)
[docs] def set_hoff(self, hopping_offset: int) -> None: """ ``[SOURce<HW>]:BB:EUTRa:UL:PRACh:EMTC:HOFF`` \n Snippet: ``driver.source.bb.eutra.uplink.prach.emtc.set_hoff(hopping_offset = 1)`` \n Sets a PRACH hopping offset as number of resource blocks (RB) . :param hopping_offset: integer Range: 1 to 110 """ param = Conversions.decimal_value_to_str(hopping_offset) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:PRACh:EMTC:HOFF {param}')
# noinspection PyTypeChecker
[docs] def get_rset(self) -> enums.EutraPrachPreambleSet: """ ``[SOURce<HW>]:BB:EUTRa:UL:PRACh:EMTC:RSET`` \n Snippet: ``value: enums.EutraPrachPreambleSet = driver.source.bb.eutra.uplink.prach.emtc.get_rset()`` \n Enables using the restricted set. :return: restricted_set: URES | ARES | BRES | OFF | ON URES | OFF Unrestricted preamble set. ARES | ON Restricted set type A. BRES Restricted set type B. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PRACh:EMTC:RSET?') return Conversions.str_to_scalar_enum(response, enums.EutraPrachPreambleSet)
[docs] def set_rset(self, restricted_set: enums.EutraPrachPreambleSet) -> None: """ ``[SOURce<HW>]:BB:EUTRa:UL:PRACh:EMTC:RSET`` \n Snippet: ``driver.source.bb.eutra.uplink.prach.emtc.set_rset(restricted_set = enums.EutraPrachPreambleSet.ARES)`` \n Enables using the restricted set. :param restricted_set: URES | ARES | BRES | OFF | ON URES | OFF Unrestricted preamble set. ARES | ON Restricted set type A. BRES Restricted set type B. """ param = Conversions.enum_scalar_to_str(restricted_set, enums.EutraPrachPreambleSet) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:PRACh:EMTC:RSET {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