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

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.Utilities import trim_str_response
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle


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

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

[docs] def set(self, frame: str, field: str, data: str) -> None: """ ``TRIGger:SBSW:QSPI:DMAX`` \n Snippet: ``driver.trigger.sbsw.qspi.dmax.set(frame = 'abc', field = 'abc', data = 'abc')`` \n Sets the end value of a data pattern range for the software trigger, if the operator is set to INRange or OORANGe. You can set the operator with method ``RsMxo.trigger.sbsw.qspi.frame.fld.doperator.set()`` . """ param = ArgSingleList().compose_cmd_string(ArgSingle('frame', frame, DataType.String), ArgSingle('field', field, DataType.String), ArgSingle('data', data, DataType.String)) self._core.io.write(f'TRIGger:SBSW:QSPI:DMAX {param}'.rstrip())
[docs] def get(self) -> str: """ ``TRIGger:SBSW:QSPI:DMAX`` \n Snippet: ``value: str = driver.trigger.sbsw.qspi.dmax.get()`` \n Sets the end value of a data pattern range for the software trigger, if the operator is set to INRange or OORANGe. You can set the operator with method ``RsMxo.trigger.sbsw.qspi.frame.fld.doperator.set()`` . """ response = self._core.io.query_str(f'TRIGger:SBSW:QSPI:DMAX?') return trim_str_response(response)