Source code for rsmxo.Implementations.Trigger.Sbsw.Qspi.FrEnable

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Types import DataType
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FrEnableCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("frEnable", core, parent)

[docs] def set(self, frame: str, enabler: bool) -> None: """ ``TRIGger:SBSW:QSPI:FRENable`` \n Snippet: ``driver.trigger.sbsw.qspi.frEnable.set(frame = 'abc', enabler = False)`` \n Enables or disables the checking condition for the selected frame for the software trigger. """ param = ArgSingleList().compose_cmd_string(ArgSingle('frame', frame, DataType.String), ArgSingle('enabler', enabler, DataType.Boolean)) self._core.io.write(f'TRIGger:SBSW:QSPI:FRENable {param}'.rstrip())
[docs] def get(self) -> bool: """ ``TRIGger:SBSW:QSPI:FRENable`` \n Snippet: ``value: bool = driver.trigger.sbsw.qspi.frEnable.get()`` \n Enables or disables the checking condition for the selected frame for the software trigger. """ response = self._core.io.query_str(f'TRIGger:SBSW:QSPI:FRENable?') return Conversions.str_to_bool(response)