Source code for rsrtx.Implementations.Trigger.I3C.Dmax

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


# 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, trigger=repcap.Trigger.Default) -> None: """ ``TRIGger<*>:I3C:DMAX`` \n Snippet: ``driver.trigger.i3C.dmax.set(frame = 'abc', field = 'abc', data = 'abc', trigger = repcap.Trigger.Default)`` \n Sets the end value of a data pattern range for the trigger, if the operator is set to INRange or OORANGe. You can set the operator with method ``RsRtx.trigger.i3C.frame.fld.doperator.set()`` . :param trigger: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') """ param = ArgSingleList().compose_cmd_string(ArgSingle('frame', frame, DataType.String), ArgSingle('field', field, DataType.String), ArgSingle('data', data, DataType.String)) trigger_cmd_val = self._cmd_group.get_repcap_cmd_value(trigger, repcap.Trigger) self._core.io.write(f'TRIGger{trigger_cmd_val}:I3C:DMAX {param}'.rstrip())