from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AutoCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("auto", core, parent)
[docs]
def set(self, state: bool) -> None:
"""
``INPut:IQ:FULLscale:AUTO`` \n
Snippet: ``driver.applications.k14Xnr5G.inputPy.iq.fullscale.auto.set(state = False)`` \n
Defines whether the full scale level (i.e. the maximum input power on the Baseband Input connector) is defined
automatically according to the reference level, or manually.
:param state: ON | 1 Automatic definition OFF | 0 Manual definition according to method ``RsFsw.applications.k10Xlte.inputPy.iq.fullscale.level.set()``
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'INPut:IQ:FULLscale:AUTO {param}')
[docs]
def get(self) -> bool:
"""
``INPut:IQ:FULLscale:AUTO`` \n
Snippet: ``value: bool = driver.applications.k14Xnr5G.inputPy.iq.fullscale.auto.get()`` \n
Defines whether the full scale level (i.e. the maximum input power on the Baseband Input connector) is defined
automatically according to the reference level, or manually.
:return: state: ON | 1 Automatic definition OFF | 0 Manual definition according to method ``RsFsw.applications.k10Xlte.inputPy.iq.fullscale.level.set()``
"""
response = self._core.io.query_str(f'INPut:IQ:FULLscale:AUTO?')
return Conversions.str_to_bool(response)