Source code for RsCmwBluetoothMeas.Implementations.Configure.MultiEval.Limit.LowEnergy.Lrange.Delta

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 DeltaCls: """Delta commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("delta", core, parent)
[docs] def set(self, delta_f_1_p_99_p_9: float, delta_f_1_p_99_enable: bool) -> None: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:LENergy:LRANge:DELTa \n Snippet: driver.configure.multiEval.limit.lowEnergy.lrange.delta.set(delta_f_1_p_99_p_9 = 1.0, delta_f_1_p_99_enable = False) \n Sets/gets the limit for the frequency deviation Δf1 that must be exceeded by 99.9% of the measured samples for LE coded PHY. \n :param delta_f_1_p_99_p_9: numeric Range: 150 kHz to 250 kHz :param delta_f_1_p_99_enable: OFF | ON Disable/enable limit checking """ param = ArgSingleList().compose_cmd_string(ArgSingle('delta_f_1_p_99_p_9', delta_f_1_p_99_p_9, DataType.Float), ArgSingle('delta_f_1_p_99_enable', delta_f_1_p_99_enable, DataType.Boolean)) self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:LENergy:LRANge:DELTa {param}'.rstrip())
# noinspection PyTypeChecker
[docs] class DeltaStruct(StructBase): """Response structure. Fields: \n - Delta_F_1_P_99_P_9: float: numeric Range: 150 kHz to 250 kHz - Delta_F_1_P_99_Enable: bool: OFF | ON Disable/enable limit checking""" __meta_args_list = [ ArgStruct.scalar_float('Delta_F_1_P_99_P_9'), ArgStruct.scalar_bool('Delta_F_1_P_99_Enable')] def __init__(self): StructBase.__init__(self, self) self.Delta_F_1_P_99_P_9: float = None self.Delta_F_1_P_99_Enable: bool = None
[docs] def get(self) -> DeltaStruct: """SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:LENergy:LRANge:DELTa \n Snippet: value: DeltaStruct = driver.configure.multiEval.limit.lowEnergy.lrange.delta.get() \n Sets/gets the limit for the frequency deviation Δf1 that must be exceeded by 99.9% of the measured samples for LE coded PHY. \n :return: structure: for return value, see the help for DeltaStruct structure arguments.""" return self._core.io.query_struct(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:LENergy:LRANge:DELTa?', self.__class__.DeltaStruct())