Source code for RsCMPX_LteMeas.Implementations.Configure.LteMeas.MultiEval.MsubFrames

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class MsubFramesCls: """MsubFrames commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("msubFrames", core, parent)
[docs] def set(self, sub_frame_offset: int, sub_frame_count: int, meas_subframe: int) -> None: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:MSUBframes \n Snippet: driver.configure.lteMeas.multiEval.msubFrames.set(sub_frame_offset = 1, sub_frame_count = 1, meas_subframe = 1) \n Configures the scope of the measurement, i.e. which subframes are measured. \n :param sub_frame_offset: Start of the measured subframe range relative to the trigger event. :param sub_frame_count: Length of the measured subframe range. :param meas_subframe: Subframe containing the measured slots for modulation and spectrum results. """ param = ArgSingleList().compose_cmd_string(ArgSingle('sub_frame_offset', sub_frame_offset, DataType.Integer), ArgSingle('sub_frame_count', sub_frame_count, DataType.Integer), ArgSingle('meas_subframe', meas_subframe, DataType.Integer)) self._core.io.write(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:MSUBframes {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class MsubFramesStruct(StructBase): """Response structure. Fields: \n - Sub_Frame_Offset: int: Start of the measured subframe range relative to the trigger event. - Sub_Frame_Count: int: Length of the measured subframe range. - Meas_Subframe: int: Subframe containing the measured slots for modulation and spectrum results.""" __meta_args_list = [ ArgStruct.scalar_int('Sub_Frame_Offset'), ArgStruct.scalar_int('Sub_Frame_Count'), ArgStruct.scalar_int('Meas_Subframe')] def __init__(self): StructBase.__init__(self, self) self.Sub_Frame_Offset: int = None self.Sub_Frame_Count: int = None self.Meas_Subframe: int = None
[docs] def get(self) -> MsubFramesStruct: """SCPI: CONFigure:LTE:MEASurement<Instance>:MEValuation:MSUBframes \n Snippet: value: MsubFramesStruct = driver.configure.lteMeas.multiEval.msubFrames.get() \n Configures the scope of the measurement, i.e. which subframes are measured. \n :return: structure: for return value, see the help for MsubFramesStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:LTE:MEASurement<Instance>:MEValuation:MSUBframes?', self.__class__.MsubFramesStruct())