Source code for RsCmwGsmSig.Implementations.Sense_.Rreport_.Gmbep

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Gmbep: """Gmbep commands group definition. 2 total commands, 0 Sub-groups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("gmbep", core, parent) # noinspection PyTypeChecker
[docs] class RangeStruct(StructBase): """Structure for reading output parameters. Fields: \n - Lower: float: log10(lower end of BEP range) Range: -3.6 to -0.6 - Upper: float: log10(upper end of BEP range) Range: -3.6 to -0.6""" __meta_args_list = [ ArgStruct.scalar_float('Lower'), ArgStruct.scalar_float('Upper')] def __init__(self): StructBase.__init__(self, self) self.Lower: float = None self.Upper: float = None
[docs] def get_range(self) -> RangeStruct: """SCPI: SENSe:GSM:SIGNaling<Instance>:RREPort:GMBep:RANGe \n Snippet: value: RangeStruct = driver.sense.rreport.gmbep.get_range() \n Returns the bit error probability (BEP) range, corresponding to the mean BEP index reported by the MS for a GMSK modulated DL signal. \n :return: structure: for return value, see the help for RangeStruct structure arguments. """ return self._core.io.query_struct('SENSe:GSM:SIGNaling<Instance>:RREPort:GMBep:RANGe?', self.__class__.RangeStruct())
[docs] def get_value(self) -> int: """SCPI: SENSe:GSM:SIGNaling<Instance>:RREPort:GMBep \n Snippet: value: int = driver.sense.rreport.gmbep.get_value() \n Returns the 'Mean BEP', reported by the MS as dimensionless index for a GMSK modulated DL signal. \n :return: mean_bep_gmsk: Range: 0 to 31 """ response = self._core.io.query_str('SENSe:GSM:SIGNaling<Instance>:RREPort:GMBep?') return Conversions.str_to_int(response)