from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class IactiveCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("iactive", core, parent)
[docs]
def get_state(self) -> bool:
"""
``[SOURce<HW>]:BB:DVB:DVBX:BHConfig:IACTive:[STATe]`` \n
Snippet: ``value: bool = driver.source.bb.dvb.dvbx.bhConfig.iactive.get_state()`` \n
Sets the ISSYI (input stream synchronization indicator) bit to 1.
:return: iactive: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBX:BHConfig:IACTive:STATe?')
return Conversions.str_to_bool(response)
[docs]
def set_state(self, iactive: bool) -> None:
"""
``[SOURce<HW>]:BB:DVB:DVBX:BHConfig:IACTive:[STATe]`` \n
Snippet: ``driver.source.bb.dvb.dvbx.bhConfig.iactive.set_state(iactive = False)`` \n
Sets the ISSYI (input stream synchronization indicator) bit to 1.
:param iactive: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(iactive)
self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBX:BHConfig:IACTive:STATe {param}')