Source code for rsrtx.Implementations.Search.Trigger.Milstd.Status.DbcAccept

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

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

[docs] def set(self, search: str, dyn_bc_flag: enums.BusBitCondition) -> None: """ ``SEARch:TRIGger:MILStd:STATus:DBCaccept`` \n Snippet: ``driver.search.trigger.milstd.status.dbcAccept.set(search = 'abc', dyn_bc_flag = enums.BusBitCondition.DC)`` \n Specifies the values (0, 1, X) of the status flags if method ``RsRtx.search.trigger.milstd.typePy.set()`` is set to STATword. """ param = ArgSingleList().compose_cmd_string(ArgSingle('search', search, DataType.String), ArgSingle('dyn_bc_flag', dyn_bc_flag, DataType.Enum, enums.BusBitCondition)) self._core.io.write(f'SEARch:TRIGger:MILStd:STATus:DBCaccept {param}'.rstrip())
# noinspection PyTypeChecker
[docs] def get(self, search: str) -> enums.BusBitCondition: """ ``SEARch:TRIGger:MILStd:STATus:DBCaccept`` \n Snippet: ``value: enums.BusBitCondition = driver.search.trigger.milstd.status.dbcAccept.get(search = 'abc')`` \n Specifies the values (0, 1, X) of the status flags if method ``RsRtx.search.trigger.milstd.typePy.set()`` is set to STATword. :param search: ONE | ZERO | DC """ param = Conversions.value_to_quoted_str(search) response = self._core.io.query_str(f'SEARch:TRIGger:MILStd:STATus:DBCaccept? {param}') return Conversions.str_to_scalar_enum(response, enums.BusBitCondition)