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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class InitCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, initialization: enums.DmrsInit, carrierComponentFour=repcap.CarrierComponentFour.Nr1, allocation=repcap.Allocation.Default) -> None: """ ``CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUCCh:DMRS:INIT`` \n Snippet: ``driver.configure.nrSubMeas.cc.allocation.pucch.dmrs.init.set(initialization = enums.DmrsInit.CID, carrierComponentFour = repcap.CarrierComponentFour.Nr1, allocation = repcap.Allocation.Default)`` \n Specifies the type of ID used for initialization of the DMRS sequence generation for PUCCH format F2, for carrier <no>, allocation <a>. :param initialization: Cell ID or DMRS ID :param carrierComponentFour: optional repeated capability selector. Default value: Nr1 :param allocation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Allocation') """ param = Conversions.enum_scalar_to_str(initialization, enums.DmrsInit) carrierComponentFour_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponentFour, repcap.CarrierComponentFour) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponentFour_cmd_val}:ALLocation{allocation_cmd_val}:PUCCh:DMRS:INIT {param}')
# noinspection PyTypeChecker
[docs] def get(self, carrierComponentFour=repcap.CarrierComponentFour.Nr1, allocation=repcap.Allocation.Default) -> enums.DmrsInit: """ ``CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUCCh:DMRS:INIT`` \n Snippet: ``value: enums.DmrsInit = driver.configure.nrSubMeas.cc.allocation.pucch.dmrs.init.get(carrierComponentFour = repcap.CarrierComponentFour.Nr1, allocation = repcap.Allocation.Default)`` \n Specifies the type of ID used for initialization of the DMRS sequence generation for PUCCH format F2, for carrier <no>, allocation <a>. :param carrierComponentFour: optional repeated capability selector. Default value: Nr1 :param allocation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Allocation') :return: initialization: Cell ID or DMRS ID """ carrierComponentFour_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponentFour, repcap.CarrierComponentFour) allocation_cmd_val = self._cmd_group.get_repcap_cmd_value(allocation, repcap.Allocation) response = self._core.io.query_str(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponentFour_cmd_val}:ALLocation{allocation_cmd_val}:PUCCh:DMRS:INIT?') return Conversions.str_to_scalar_enum(response, enums.DmrsInit)