from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LuseCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("luse", core, parent)
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:DVB:DVBX:GHConfig:LUSE:[STATe]`` \n
Snippet: ``value: bool = driver.source.bb.dvb.dvbx.ghConfig.luse.get_state()`` \n
Includes the label indication in the GSE header.
:return: luse: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:GHConfig:LUSE:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, luse: bool) -> None:
"""
``[SOURce<HW>]:BB:DVB:DVBX:GHConfig:LUSE:[STATe]`` \n
Snippet: ``driver.source.bb.dvb.dvbx.ghConfig.luse.set_state(luse = False)`` \n
Includes the label indication in the GSE header.
:param luse: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(luse)
self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:GHConfig:LUSE:STATe {param}')