Source code for rsrtx.Implementations.Search.Trigger.Usb.Amin

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

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

[docs] def set(self, search: str, address: int) -> None: """ ``SEARch:TRIGger:USB:AMIN`` \n Snippet: ``driver.search.trigger.usb.amin.set(search = 'abc', address = 1)`` \n Specifies an address, or sets the start value of an address range. The string parameter does not accept the bit value X (don't care) . """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('address', address, DataType.Integer)) self._core.io.write(f'SEARch:TRIGger:USB:AMIN {param}'.rstrip())
[docs] def get(self, search: str) -> int: """ ``SEARch:TRIGger:USB:AMIN`` \n Snippet: ``value: int = driver.search.trigger.usb.amin.get(search = 'abc')`` \n Specifies an address, or sets the start value of an address range. The string parameter does not accept the bit value X (don't care) . """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:USB:AMIN? {param}') return Conversions.str_to_int(response)