Source code for RsCmwLteSig.Implementations.Sense.UeReport.Ncell.Wcdma.Cell

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
from ....... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class CellCls: """Cell commands group definition. 2 total commands, 1 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("cell", core, parent) @property def range(self): """range commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_range'): from .Range import RangeCls self._range = RangeCls(self._core, self._cmd_group) return self._range # noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """Response structure. Fields: \n - Rscp: int: decimal RSCP as dimensionless index Range: -5 to 91 - Ec_No: int: decimal Ec/No as dimensionless index Range: 0 to 49""" __meta_args_list = [ ArgStruct.scalar_int('Rscp'), ArgStruct.scalar_int('Ec_No')] def __init__(self): StructBase.__init__(self, self) self.Rscp: int = None self.Ec_No: int = None
[docs] def get(self, cellNo=repcap.CellNo.Default) -> GetStruct: """SCPI: SENSe:LTE:SIGNaling<instance>:UEReport:NCELl:WCDMa:CELL<nr> \n Snippet: value: GetStruct = driver.sense.ueReport.ncell.wcdma.cell.get(cellNo = repcap.CellNo.Default) \n Returns measurement report values for the WCDMA neighbor cell number <no>. \n :param cellNo: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Ncell') :return: structure: for return value, see the help for GetStruct structure arguments.""" cellNo_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNo, repcap.CellNo) return self._core.io.query_struct(f'SENSe:LTE:SIGNaling<Instance>:UEReport:NCELl:WCDMa:CELL{cellNo_cmd_val}?', self.__class__.GetStruct())
def clone(self) -> 'CellCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = CellCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group