Source code for rsrtx.Implementations.Search.Trigger.Tnos.Bit

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal.Types import DataType
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle
from ..... import enums


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

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

[docs] def set(self, search: str, frame: str, field: str, bit: enums.BusBitCondition) -> None: """ ``SEARch:TRIGger:TNOS:BIT`` \n Snippet: ``driver.search.trigger.tnos.bit.set(search = 'abc', frame = 'abc', field = 'abc', bit = enums.BusBitCondition.DC)`` \n Sets the bit state of a field to be searched that only consists of one bit. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('frame', frame, DataType.String), ArgSingle('field', field, DataType.String), ArgSingle('bit', bit, DataType.Enum, enums.BusBitCondition)) self._core.io.write(f'SEARch:TRIGger:TNOS:BIT {param}'.rstrip())