from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class AttSlotsCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("attSlots", core, parent)
[docs]
def set(self, state: bool) -> None:
"""
``[SENSe][:LTE]:UL:DEMod:ATTSlots`` \n
Snippet: ``driver.applications.k10Xlte.sense.lte.uplink.demod.attSlots.set(state = False)`` \n
Includes or excludes the transient slots present after a switch from downlink to uplink from the analysis.
:param state: ON | OFF | 1 | 0
"""
param = Conversions.bool_to_str(state)
self._core.io.write(f'SENSe:LTE:UL:DEMod:ATTSlots {param}')
[docs]
def get(self) -> bool:
"""
``[SENSe][:LTE]:UL:DEMod:ATTSlots`` \n
Snippet: ``value: bool = driver.applications.k10Xlte.sense.lte.uplink.demod.attSlots.get()`` \n
Includes or excludes the transient slots present after a switch from downlink to uplink from the analysis.
:return: state: ON | OFF | 1 | 0
"""
response = self._core.io.query_str(f'SENSe:LTE:UL:DEMod:ATTSlots?')
return Conversions.str_to_bool(response)