Source code for rsrtx.Implementations.Search.Trigger.Lin.IpError

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

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

[docs] def set(self, search: str, idtf_par_err: bool) -> None: """ ``SEARch:TRIGger:LIN:IPERror`` \n Snippet: ``driver.search.trigger.lin.ipError.set(search = 'abc', idtf_par_err = False)`` \n Searches for errors in the identifier parity bits. These are the bits 6 and 7 of the identifier. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('idtf_par_err', idtf_par_err, DataType.Boolean)) self._core.io.write(f'SEARch:TRIGger:LIN:IPERror {param}'.rstrip())
[docs] def get(self, search: str) -> bool: """ ``SEARch:TRIGger:LIN:IPERror`` \n Snippet: ``value: bool = driver.search.trigger.lin.ipError.get(search = 'abc')`` \n Searches for errors in the identifier parity bits. These are the bits 6 and 7 of the identifier. :param search: OFF | ON """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:LIN:IPERror? {param}') return Conversions.str_to_bool(response)