Source code for rsrtx.Implementations.Search.Trigger.FlxRay.PcrcError

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

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

[docs] def set(self, search: str, crcp_load_err: bool) -> None: """ ``SEARch:TRIGger:FLXRay:PCRCerror`` \n Snippet: ``driver.search.trigger.flxRay.pcrcError.set(search = 'abc', crcp_load_err = False)`` \n Searches for error in the Cyclic Redundancy Check of the payload data. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('crcp_load_err', crcp_load_err, DataType.Boolean)) self._core.io.write(f'SEARch:TRIGger:FLXRay:PCRCerror {param}'.rstrip())
[docs] def get(self, search: str) -> bool: """ ``SEARch:TRIGger:FLXRay:PCRCerror`` \n Snippet: ``value: bool = driver.search.trigger.flxRay.pcrcError.get(search = 'abc')`` \n Searches for error in the Cyclic Redundancy Check of the payload data. :param search: OFF | ON """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:FLXRay:PCRCerror? {param}') return Conversions.str_to_bool(response)