Source code for RsCmwGsmSig.Implementations.Sense_.Rreport_.Ncell_.Lte_.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 Cell: """Cell commands group definition. 2 total commands, 1 Sub-groups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("cell", core, parent) @property def range(self): """range commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_range'): from .Cell_.Range import Range self._range = Range(self._core, self._base) return self._range # noinspection PyTypeChecker
[docs] class GetStruct(StructBase): """Response structure. Fields: \n - Rsrp: int: RSRP as dimensionless index Range: 0 to 63 - Rsrq: int: RSRQ as dimensionless index Range: 0 to 34""" __meta_args_list = [ ArgStruct.scalar_int('Rsrp'), ArgStruct.scalar_int('Rsrq')] def __init__(self): StructBase.__init__(self, self) self.Rsrp: int = None self.Rsrq: int = None
[docs] def get(self, cellNo=repcap.CellNo.Nr1) -> GetStruct: """SCPI: SENSe:GSM:SIGNaling<instance>:RREPort:NCELl:LTE:CELL<nr> \n Snippet: value: GetStruct = driver.sense.rreport.ncell.lte.cell.get(cellNo = repcap.CellNo.Nr1) \n Returns measurement report values for a selected LTE neighbor cell. \n :param cellNo: optional repeated capability selector. Default value: Nr1 :return: structure: for return value, see the help for GetStruct structure arguments.""" cellNo_cmd_val = self._base.get_repcap_cmd_value(cellNo, repcap.CellNo) return self._core.io.query_struct(f'SENSe:GSM:SIGNaling<Instance>:RREPort:NCELl:LTE:CELL{cellNo_cmd_val}?', self.__class__.GetStruct())
def clone(self) -> 'Cell': """Clones the group by creating new object from it and its whole existing sub-groups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = Cell(self._core, self._base.parent) self._base.synchronize_repcaps(new_group) return new_group