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 Thresholds:
"""Thresholds commands group definition. 2 total commands, 0 Sub-groups, 2 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._base = CommandsGroup("thresholds", core, parent)
[docs] def get_low(self) -> int:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:NCELl:LTE:THResholds:LOW \n
Snippet: value: int = driver.configure.ncell.lte.thresholds.get_low() \n
No command help available \n
:return: low: No help available
"""
response = self._core.io.query_str('CONFigure:EVDO:SIGNaling<Instance>:NCELl:LTE:THResholds:LOW?')
return Conversions.str_to_int(response)
[docs] def set_low(self, low: int) -> None:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:NCELl:LTE:THResholds:LOW \n
Snippet: driver.configure.ncell.lte.thresholds.set_low(low = 1) \n
No command help available \n
:param low: No help available
"""
param = Conversions.decimal_value_to_str(low)
self._core.io.write(f'CONFigure:EVDO:SIGNaling<Instance>:NCELl:LTE:THResholds:LOW {param}')
# noinspection PyTypeChecker
[docs] class ValueStruct(StructBase):
"""Structure for reading output parameters. Fields: \n
- High: int: No parameter help available
- Low: int: No parameter help available"""
__meta_args_list = [
ArgStruct.scalar_int('High'),
ArgStruct.scalar_int('Low')]
def __init__(self):
StructBase.__init__(self, self)
self.High: int = None
self.Low: int = None
[docs] def get_value(self) -> ValueStruct:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:NCELl:LTE:THResholds \n
Snippet: value: ValueStruct = driver.configure.ncell.lte.thresholds.get_value() \n
No command help available \n
:return: structure: for return value, see the help for ValueStruct structure arguments.
"""
return self._core.io.query_struct('CONFigure:EVDO:SIGNaling<Instance>:NCELl:LTE:THResholds?', self.__class__.ValueStruct())
[docs] def set_value(self, value: ValueStruct) -> None:
"""SCPI: CONFigure:EVDO:SIGNaling<instance>:NCELl:LTE:THResholds \n
Snippet: driver.configure.ncell.lte.thresholds.set_value(value = ValueStruct()) \n
No command help available \n
:param value: see the help for ValueStruct structure arguments.
"""
self._core.io.write_struct('CONFigure:EVDO:SIGNaling<Instance>:NCELl:LTE:THResholds', value)