from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CdcOffsetCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("cdcOffset", core, parent)
[docs]
def set(self, state: bool) -> None:
"""
``[SENSe][:LTE]:UL:DEMod:CDCoffset`` \n
Snippet: ``driver.applications.k10Xlte.sense.lte.uplink.demod.cdcOffset.set(state = False)`` \n
Turns DC offset compensation on and off.
:param state: ON | OFF | 1 | 0
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SENSe:LTE:UL:DEMod:CDCoffset {param}')
[docs]
def get(self) -> bool:
"""
``[SENSe][:LTE]:UL:DEMod:CDCoffset`` \n
Snippet: ``value: bool = driver.applications.k10Xlte.sense.lte.uplink.demod.cdcOffset.get()`` \n
Turns DC offset compensation on and off.
:return: state: ON | OFF | 1 | 0
"""
response = self._core.io.query_str(f'SENSe:LTE:UL:DEMod:CDCoffset?')
return Conversions.str_to_bool(response)