Source code for RsCMPX_LteMeas.Implementations.Configure.LteMeas.MultiEval.ListPy.Segment.Tdd

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 repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class TddCls: """Tdd commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("tdd", core, parent)
[docs] def set(self, uplink_downlink: int, special_subframe: int, segment=repcap.Segment.Default) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:TDD \n Snippet: driver.configure.lteMeas.multiEval.listPy.segment.tdd.set(uplink_downlink = 1, special_subframe = 1, segment = repcap.Segment.Default) \n Defines segment settings only relevant for uplink measurements with the duplex mode TDD. For general segment configuration, see method RsCMPX_LteMeas.Configure.LteMeas.MultiEval.ListPy.Segment.Setup.set. \n :param uplink_downlink: UL-DL configuration, defining the combination of uplink, downlink and special subframes within a radio frame :param special_subframe: Special subframe configuration, defining the inner structure of special subframes :param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') """ param = ArgSingleList().compose_cmd_string(ArgSingle('uplink_downlink', uplink_downlink, DataType.Integer), ArgSingle('special_subframe', special_subframe, DataType.Integer)) segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:TDD {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class TddStruct(StructBase): """Response structure. Fields: \n - Uplink_Downlink: int: UL-DL configuration, defining the combination of uplink, downlink and special subframes within a radio frame - Special_Subframe: int: Special subframe configuration, defining the inner structure of special subframes""" __meta_args_list = [ ArgStruct.scalar_int('Uplink_Downlink'), ArgStruct.scalar_int('Special_Subframe')] def __init__(self): StructBase.__init__(self, self) self.Uplink_Downlink: int = None self.Special_Subframe: int = None
[docs] def get(self, segment=repcap.Segment.Default) -> TddStruct: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent<nr>:TDD \n Snippet: value: TddStruct = driver.configure.lteMeas.multiEval.listPy.segment.tdd.get(segment = repcap.Segment.Default) \n Defines segment settings only relevant for uplink measurements with the duplex mode TDD. For general segment configuration, see method RsCMPX_LteMeas.Configure.LteMeas.MultiEval.ListPy.Segment.Setup.set. \n :param segment: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Segment') :return: structure: for return value, see the help for TddStruct structure arguments.""" segment_cmd_val = self._cmd_group.get_repcap_cmd_value(segment, repcap.Segment) return self._core.io.query_struct(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:LIST:SEGMent{segment_cmd_val}:TDD?', self.__class__.TddStruct())