Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.Cc.Allocation.Pucch

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.Types import DataType
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
from .......Internal.ArgSingleList import ArgSingleList
from .......Internal.ArgSingle import ArgSingle
from ....... import enums
from ....... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PucchCls:
	"""
	| Commands in total: 11
	| Subgroups: 7
	| Direct child commands: 1
	"""

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

	@property
	def isfHopping(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_isfHopping'):
			from .IsfHopping import IsfHoppingCls
			self._isfHopping = IsfHoppingCls(self._core, self._cmd_group)
		return self._isfHopping

	@property
	def shPrb(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_shPrb'):
			from .ShPrb import ShPrbCls
			self._shPrb = ShPrbCls(self._core, self._cmd_group)
		return self._shPrb

	@property
	def ghopping(self):
		"""
		| Commands in total: 3
		| Subgroups: 2
		| Direct child commands: 1
		"""
		if not hasattr(self, '_ghopping'):
			from .Ghopping import GhoppingCls
			self._ghopping = GhoppingCls(self._core, self._cmd_group)
		return self._ghopping

	@property
	def icShift(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_icShift'):
			from .IcShift import IcShiftCls
			self._icShift = IcShiftCls(self._core, self._cmd_group)
		return self._icShift

	@property
	def tdoIndex(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_tdoIndex'):
			from .TdoIndex import TdoIndexCls
			self._tdoIndex = TdoIndexCls(self._core, self._cmd_group)
		return self._tdoIndex

	@property
	def dmrs(self):
		"""
		| Commands in total: 2
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_dmrs'):
			from .Dmrs import DmrsCls
			self._dmrs = DmrsCls(self._core, self._cmd_group)
		return self._dmrs

	@property
	def occ(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_occ'):
			from .Occ import OccCls
			self._occ = OccCls(self._core, self._cmd_group)
		return self._occ

[docs] def set(self, pucch_format: enums.PucchFormat, no_symbols: int, start_symbol: int, no_rbs: int, start_rb: int, carrierComponent=repcap.CarrierComponent.Nr1, allocation=repcap.Allocation.Default) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUCCh`` \n Snippet: ``driver.configure.nrSubMeas.cc.allocation.pucch.set(pucch_format = enums.PucchFormat.F0, no_symbols = 1, start_symbol = 1, no_rbs = 1, start_rb = 1, carrierComponent = repcap.CarrierComponent.Nr1, allocation = repcap.Allocation.Default)`` \n Specifies settings related to the PUCCH allocation, for carrier <no>, allocation <a>. The ranges for the allocated RBs and symbols have dependencies, see 'RB allocation for uplink measurements' and 'Slots and symbols for PUSCH and PUCCH'. :param pucch_format: PUCCH format :param no_symbols: Number of allocated OFDM symbols in each uplink slot. :param start_symbol: Index of the first allocated symbol in each uplink slot. :param no_rbs: Number of allocated UL RBs. :param start_rb: Index of the first allocated RB. :param carrierComponent: optional repeated capability selector. Default value: Nr1 :param allocation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Allocation') """ param = ArgSingleList().compose_cmd_string(ArgSingle('pucch_format', pucch_format, DataType.Enum, enums.PucchFormat), ArgSingle('no_symbols', no_symbols, DataType.Integer), ArgSingle('start_symbol', start_symbol, DataType.Integer), ArgSingle('no_rbs', no_rbs, DataType.Integer), ArgSingle('start_rb', start_rb, DataType.Integer)) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponent_cmd_val}:ALLocation{allocation_cmd_val}:PUCCh {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class PucchStruct(StructBase): """ Response structure. Fields: \n - 1 Pucch_Format: enums.PucchFormat: PUCCH format - 2 No_Symbols: int: Number of allocated OFDM symbols in each uplink slot. - 3 Start_Symbol: int: Index of the first allocated symbol in each uplink slot. - 4 No_Rbs: int: Number of allocated UL RBs. - 5 Start_Rb: int: Index of the first allocated RB. """ __meta_args_list = [ ArgStruct.scalar_enum('Pucch_Format', enums.PucchFormat), ArgStruct.scalar_int('No_Symbols'), ArgStruct.scalar_int('Start_Symbol'), ArgStruct.scalar_int('No_Rbs'), ArgStruct.scalar_int('Start_Rb')] def __init__(self): StructBase.__init__(self, self) self.Pucch_Format: enums.PucchFormat = None self.No_Symbols: int = None self.Start_Symbol: int = None self.No_Rbs: int = None self.Start_Rb: int = None
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Nr1, allocation=repcap.Allocation.Default) -> PucchStruct: """ ``CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUCCh`` \n Snippet: ``value: PucchStruct = driver.configure.nrSubMeas.cc.allocation.pucch.get(carrierComponent = repcap.CarrierComponent.Nr1, allocation = repcap.Allocation.Default)`` \n Specifies settings related to the PUCCH allocation, for carrier <no>, allocation <a>. The ranges for the allocated RBs and symbols have dependencies, see 'RB allocation for uplink measurements' and 'Slots and symbols for PUSCH and PUCCH'. :param carrierComponent: optional repeated capability selector. Default value: Nr1 :param allocation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Allocation') :return: structure: for return value, see the help for PucchStruct structure arguments. """ carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) return self._core.io.query_struct(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponent_cmd_val}:ALLocation{allocation_cmd_val}:PUCCh?', self.__class__.PucchStruct())
def clone(self) -> 'PucchCls': """ 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 = PucchCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group