Source code for RsSmbv.Implementations.Source.Bb.Tdscdma.Down.Cell.Enh.Dch.Plcch.SsPattern

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
from .......... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class SsPatternCls: """SsPattern commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ssPattern", core, parent)
[docs] def set(self, ss_pattern: List[str], bitcount: int, cell=repcap.Cell.Default) -> None: """SCPI: [SOURce<HW>]:BB:TDSCdma:DOWN:CELL<ST>:ENH:DCH:PLCCh:SSPattern \n Snippet: driver.source.bb.tdscdma.down.cell.enh.dch.plcch.ssPattern.set(ss_pattern = ['rawAbc1', 'rawAbc2', 'rawAbc3'], bitcount = 1, cell = repcap.Cell.Default) \n Sets the sync shift pattern and the pattern length. \n :param ss_pattern: numeric :param bitcount: integer Range: 1 to 21 :param cell: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cell') """ param = ArgSingleList().compose_cmd_string(ArgSingle.as_open_list('ss_pattern', ss_pattern, DataType.RawStringList, None), ArgSingle('bitcount', bitcount, DataType.Integer)) cell_cmd_val = self._cmd_group.get_repcap_cmd_value(cell, repcap.Cell) self._core.io.write(f'SOURce<HwInstance>:BB:TDSCdma:DOWN:CELL{cell_cmd_val}:ENH:DCH:PLCCh:SSPattern {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class SsPatternStruct(StructBase): """Response structure. Fields: \n - Ss_Pattern: List[str]: numeric - Bitcount: int: integer Range: 1 to 21""" __meta_args_list = [ ArgStruct('Ss_Pattern', DataType.RawStringList, None, False, True, 1), ArgStruct.scalar_int('Bitcount')] def __init__(self): StructBase.__init__(self, self) self.Ss_Pattern: List[str] = None self.Bitcount: int = None
[docs] def get(self, cell=repcap.Cell.Default) -> SsPatternStruct: """SCPI: [SOURce<HW>]:BB:TDSCdma:DOWN:CELL<ST>:ENH:DCH:PLCCh:SSPattern \n Snippet: value: SsPatternStruct = driver.source.bb.tdscdma.down.cell.enh.dch.plcch.ssPattern.get(cell = repcap.Cell.Default) \n Sets the sync shift pattern and the pattern length. \n :param cell: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cell') :return: structure: for return value, see the help for SsPatternStruct structure arguments.""" cell_cmd_val = self._cmd_group.get_repcap_cmd_value(cell, repcap.Cell) return self._core.io.query_struct(f'SOURce<HwInstance>:BB:TDSCdma:DOWN:CELL{cell_cmd_val}:ENH:DCH:PLCCh:SSPattern?', self.__class__.SsPatternStruct())