from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SyncCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("sync", core, parent)
[docs]
def get_output(self) -> bool:
"""
``[SOURce<HW>]:BB:LRWPan:TRIGger:[EXTernal]:SYNC:OUTPut`` \n
Snippet: ``value: bool = driver.source.bb.lrWpan.trigger.external.sync.get_output()`` \n
Enables signal output synchronous to the trigger event.
:return: output: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:LRWPan:TRIGger:EXTernal:SYNC:OUTPut?')
return Conversions.str_to_bool(response)
[docs]
def set_output(self, output: bool) -> None:
"""
``[SOURce<HW>]:BB:LRWPan:TRIGger:[EXTernal]:SYNC:OUTPut`` \n
Snippet: ``driver.source.bb.lrWpan.trigger.external.sync.set_output(output = False)`` \n
Enables signal output synchronous to the trigger event.
:param output: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(output)
self._core.io.write(f'SOURce<HwInstance>:BB:LRWPan:TRIGger:EXTernal:SYNC:OUTPut {param}')