Source code for RsCMPX_NrFr1Meas.Implementations.Configure.NrSubMeas.Cc.BwPart.Pucch.AdMrs

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class AdMrsCls: """AdMrs commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("adMrs", core, parent)
[docs] def set(self, bwp: enums.BandwidthPart, additional_dmrs: bool, carrierComponent=repcap.CarrierComponent.Nr1) -> None: """SCPI: CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:BWPart:PUCCh:ADMRs \n Snippet: driver.configure.nrSubMeas.cc.bwPart.pucch.adMrs.set(bwp = enums.BandwidthPart.BWP0, additional_dmrs = False, carrierComponent = repcap.CarrierComponent.Nr1) \n Specifies whether the PUCCH in the <BWP> on carrier <no> uses an additional DMRS. \n :param bwp: No help available :param additional_dmrs: No help available :param carrierComponent: optional repeated capability selector. Default value: Nr1 """ param = ArgSingleList().compose_cmd_string(ArgSingle('bwp', bwp, DataType.Enum, enums.BandwidthPart), ArgSingle('additional_dmrs', additional_dmrs, DataType.Boolean)) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) self._core.io.write(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponent_cmd_val}:BWPart:PUCCh:ADMRs {param}'.rstrip())
[docs] def get(self, bwp: enums.BandwidthPart, carrierComponent=repcap.CarrierComponent.Nr1) -> bool: """SCPI: CONFigure:NRSub:MEASurement<Instance>[:CC<no>]:BWPart:PUCCh:ADMRs \n Snippet: value: bool = driver.configure.nrSubMeas.cc.bwPart.pucch.adMrs.get(bwp = enums.BandwidthPart.BWP0, carrierComponent = repcap.CarrierComponent.Nr1) \n Specifies whether the PUCCH in the <BWP> on carrier <no> uses an additional DMRS. \n :param bwp: No help available :param carrierComponent: optional repeated capability selector. Default value: Nr1 :return: additional_dmrs: No help available""" param = Conversions.enum_scalar_to_str(bwp, enums.BandwidthPart) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) response = self._core.io.query_str(f'CONFigure:NRSub:MEASurement<Instance>:CC{carrierComponent_cmd_val}:BWPart:PUCCh:ADMRs? {param}') return Conversions.str_to_bool(response)