Source code for RsSmbv.Implementations.Source.Bb.Eutra.Downlink.Niot.Nprs.Mtia

from typing import List

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 MtiaCls: """Mtia commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mtia", core, parent)
[docs] def set(self, nprs_muting_info_a: List[str], bitcount: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:NPRS:MTIA \n Snippet: driver.source.bb.eutra.downlink.niot.nprs.mtia.set(nprs_muting_info_a = ['rawAbc1', 'rawAbc2', 'rawAbc3'], bitcount = 1) \n Sets the nprs-MutingInfoA/nprs-MutingInfoB parameter, required if muting is used for the NPRS part A (and Part B) configurations. \n :param nprs_muting_info_a: numeric '1' indicates that the NPRS is transmitted in the corresponding occasion; a '0' indicates a muted NPRS. :param bitcount: integer Sets the length of the periodically repeating NPRS bit sequence in number of NPRS position occurrences. Allowed are the following values: 2, 4, 8 or 16 Range: 2 to 16 """ param = ArgSingleList().compose_cmd_string(ArgSingle.as_open_list('nprs_muting_info_a', nprs_muting_info_a, DataType.RawStringList, None), ArgSingle('bitcount', bitcount, DataType.Integer)) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:NPRS:MTIA {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class MtiaStruct(StructBase): """Response structure. Fields: \n - Nprs_Muting_Info_A: List[str]: No parameter help available - Bitcount: int: integer Sets the length of the periodically repeating NPRS bit sequence in number of NPRS position occurrences. Allowed are the following values: 2, 4, 8 or 16 Range: 2 to 16""" __meta_args_list = [ ArgStruct('Nprs_Muting_Info_A', DataType.RawStringList, None, False, True, 1), ArgStruct.scalar_int('Bitcount')] def __init__(self): StructBase.__init__(self, self) self.Nprs_Muting_Info_A: List[str] = None self.Bitcount: int = None
[docs] def get(self) -> MtiaStruct: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:NPRS:MTIA \n Snippet: value: MtiaStruct = driver.source.bb.eutra.downlink.niot.nprs.mtia.get() \n Sets the nprs-MutingInfoA/nprs-MutingInfoB parameter, required if muting is used for the NPRS part A (and Part B) configurations. \n :return: structure: for return value, see the help for MtiaStruct structure arguments.""" return self._core.io.query_struct(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:NPRS:MTIA?', self.__class__.MtiaStruct())