Source code for rsrtx.Implementations.Search.Trigger.Rffe.Saddress.Max

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 MaxCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, search: str, sid_max: int) -> None: """ ``SEARch:TRIGger:RFFE:SADDress:MAX`` \n Snippet: ``driver.search.trigger.rffe.saddress.max.set(search = 'abc', sid_max = 1)`` \n Sets the end value of an range if the corresponding condition is set to INRange or OORange. See SEARch:TRIGger:RFFE:... :CON :param search: Numeric or string pattern, see 'Bit pattern parameter'. The string parameter accepts the bit value X (don't care) . :param sid_max: String parameter """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('sid_max', sid_max, DataType.Integer)) self._core.io.write(f'SEARch:TRIGger:RFFE:SADDress:MAX {param}'.rstrip())
[docs] def get(self, search: str) -> int: """ ``SEARch:TRIGger:RFFE:SADDress:MAX`` \n Snippet: ``value: int = driver.search.trigger.rffe.saddress.max.get(search = 'abc')`` \n Sets the end value of an range if the corresponding condition is set to INRange or OORange. See SEARch:TRIGger:RFFE:... :CON :param search: Numeric or string pattern, see 'Bit pattern parameter'. The string parameter accepts the bit value X (don't care) . """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:RFFE:SADDress:MAX? {param}') return Conversions.str_to_int(response)