Source code for rsrtx.Implementations.Search.Trigger.Pcie.Dllp.Mult.Resa

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
from ....... import enums


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

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

[docs] def set(self, search: str, dllp_mr_reset_a: enums.DllpMrResetA) -> None: """ ``SEARch:TRIGger:PCIE:DLLP:MULT:RESA`` \n Snippet: ``driver.search.trigger.pcie.dllp.mult.resa.set(search = 'abc', dllp_mr_reset_a = enums.DllpMrResetA.ACK)`` \n Sets the on the value of the A bit to be searched for, for the data link layer. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('dllp_mr_reset_a', dllp_mr_reset_a, DataType.Enum, enums.DllpMrResetA)) self._core.io.write(f'SEARch:TRIGger:PCIE:DLLP:MULT:RESA {param}'.rstrip())
# noinspection PyTypeChecker
[docs] def get(self, search: str) -> enums.DllpMrResetA: """ ``SEARch:TRIGger:PCIE:DLLP:MULT:RESA`` \n Snippet: ``value: enums.DllpMrResetA = driver.search.trigger.pcie.dllp.mult.resa.get(search = 'abc')`` \n Sets the on the value of the A bit to be searched for, for the data link layer. :param search: ANY | ACK | REQUEST """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:PCIE:DLLP:MULT:RESA? {param}') return Conversions.str_to_scalar_enum(response, enums.DllpMrResetA)