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_2_p_99_p_9: float, delta_f_2_p_99_enable: bool) -> None:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:LENergy:LE2M:DELTa \n
Snippet: driver.configure.multiEval.limit.lowEnergy.le2M.delta.set(delta_f_2_p_99_p_9 = 1.0, delta_f_2_p_99_enable = False) \n
Sets/gets the limit for the frequency deviation Δf2 for LE 2M PHY that must be exceeded by 99.9% of the measured samples. \n
:param delta_f_2_p_99_p_9: numeric Range: 150 kHz to 500 kHz
:param delta_f_2_p_99_enable: OFF | ON Disable/enable limit checking
"""
param = ArgSingleList().compose_cmd_string(ArgSingle('delta_f_2_p_99_p_9', delta_f_2_p_99_p_9, DataType.Float), ArgSingle('delta_f_2_p_99_enable', delta_f_2_p_99_enable, DataType.Boolean))
self._core.io.write(f'CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:LENergy:LE2M:DELTa {param}'.rstrip())
# noinspection PyTypeChecker
[docs]
class DeltaStruct(StructBase):
"""Response structure. Fields: \n
- Delta_F_2_P_99_P_9: float: numeric Range: 150 kHz to 500 kHz
- Delta_F_2_P_99_Enable: bool: OFF | ON Disable/enable limit checking"""
__meta_args_list = [
ArgStruct.scalar_float('Delta_F_2_P_99_P_9'),
ArgStruct.scalar_bool('Delta_F_2_P_99_Enable')]
def __init__(self):
StructBase.__init__(self, self)
self.Delta_F_2_P_99_P_9: float = None
self.Delta_F_2_P_99_Enable: bool = None
[docs]
def get(self) -> DeltaStruct:
"""SCPI: CONFigure:BLUetooth:MEASurement<Instance>:MEValuation:LIMit:LENergy:LE2M:DELTa \n
Snippet: value: DeltaStruct = driver.configure.multiEval.limit.lowEnergy.le2M.delta.get() \n
Sets/gets the limit for the frequency deviation Δf2 for LE 2M PHY that must be exceeded by 99.9% of the measured samples. \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:LE2M:DELTa?', self.__class__.DeltaStruct())