Source code for rsrtx.Implementations.Trigger.SerPattern.Ebtb

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from ..... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class EbtbCls:
	"""
	| Commands in total: 12
	| Subgroups: 7
	| Direct child commands: 1
	"""

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

	@property
	def alignment(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_alignment'):
			from .Alignment import AlignmentCls
			self._alignment = AlignmentCls(self._core, self._cmd_group)
		return self._alignment

	@property
	def fid(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_fid'):
			from .Fid import FidCls
			self._fid = FidCls(self._core, self._cmd_group)
		return self._fid

	@property
	def count(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_count'):
			from .Count import CountCls
			self._count = CountCls(self._core, self._cmd_group)
		return self._count

	@property
	def append(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_append'):
			from .Append import AppendCls
			self._append = AppendCls(self._core, self._cmd_group)
		return self._append

	@property
	def scramble(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_scramble'):
			from .Scramble import ScrambleCls
			self._scramble = ScrambleCls(self._core, self._cmd_group)
		return self._scramble

	@property
	def symbols(self):
		"""
		| Commands in total: 4
		| Subgroups: 4
		| Direct child commands: 0
		"""
		if not hasattr(self, '_symbols'):
			from .Symbols import SymbolsCls
			self._symbols = SymbolsCls(self._core, self._cmd_group)
		return self._symbols

	@property
	def error(self):
		"""
		| Commands in total: 2
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_error'):
			from .Error import ErrorCls
			self._error = ErrorCls(self._core, self._cmd_group)
		return self._error

[docs] def clear(self, trigger=repcap.Trigger.Default, opc_timeout_ms: int = -1) -> None: """ ``TRIGger<*>:SERPattern:EBTB:CLEar`` \n Snippet: ``driver.trigger.serPattern.ebtb.clear(trigger = repcap.Trigger.Default)`` \n Removes all entries from the 8b/10b table. :param trigger: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Trigger') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ trigger_cmd_val = self._cmd_group.get_repcap_cmd_value(trigger, repcap.Trigger) self._core.io.write_with_opc(f'TRIGger{trigger_cmd_val}:SERPattern:EBTB:CLEar', opc_timeout_ms)
def clone(self) -> 'EbtbCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = EbtbCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group