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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class HidCls: """Hid commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("hid", core, parent)
[docs] def set(self, idn: int, carrierComponentFour=repcap.CarrierComponentFour.Nr1, allocation=repcap.Allocation.Default) -> None: """SCPI: CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUCCh:GHOPping:HID \n Snippet: driver.configure.nrSubMeas.cc.allocation.pucch.ghopping.hid.set(idn = 1, carrierComponentFour = repcap.CarrierComponentFour.Nr1, allocation = repcap.Allocation.Default) \n Specifies the hopping ID, for carrier <no>, allocation <a>. See also method RsCMPX_NrFr1Meas.Configure.NrSubMeas.Cc. Allocation.Pucch.Ghopping.Init.set. \n :param idn: No help available :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.decimal_value_to_str(idn) 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:GHOPping:HID {param}')
[docs] def get(self, carrierComponentFour=repcap.CarrierComponentFour.Nr1, allocation=repcap.Allocation.Default) -> int: """SCPI: CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:ALLocation<Allocation>:PUCCh:GHOPping:HID \n Snippet: value: int = driver.configure.nrSubMeas.cc.allocation.pucch.ghopping.hid.get(carrierComponentFour = repcap.CarrierComponentFour.Nr1, allocation = repcap.Allocation.Default) \n Specifies the hopping ID, for carrier <no>, allocation <a>. See also method RsCMPX_NrFr1Meas.Configure.NrSubMeas.Cc. Allocation.Pucch.Ghopping.Init.set. \n :param carrierComponentFour: optional repeated capability selector. Default value: Nr1 :param allocation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Allocation') :return: idn: No help available""" 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:GHOPping:HID?') return Conversions.str_to_int(response)