Source code for rsrtx.Implementations.Lane.Equalization.Dfe

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DfeCls:
	"""
	| Commands in total: 21
	| Subgroups: 5
	| Direct child commands: 2
	"""

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

	@property
	def state(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_state'):
			from .State import StateCls
			self._state = StateCls(self._core, self._cmd_group)
		return self._state

	@property
	def gain(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_gain'):
			from .Gain import GainCls
			self._gain = GainCls(self._core, self._cmd_group)
		return self._gain

	@property
	def name(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_name'):
			from .Name import NameCls
			self._name = NameCls(self._core, self._cmd_group)
		return self._name

	@property
	def taps(self):
		"""
		| Commands in total: 4
		| Subgroups: 3
		| Direct child commands: 1
		"""
		if not hasattr(self, '_taps'):
			from .Taps import TapsCls
			self._taps = TapsCls(self._core, self._cmd_group)
		return self._taps

	@property
	def timReference(self):
		"""
		| Commands in total: 12
		| Subgroups: 3
		| Direct child commands: 0
		"""
		if not hasattr(self, '_timReference'):
			from .TimReference import TimReferenceCls
			self._timReference = TimReferenceCls(self._core, self._cmd_group)
		return self._timReference

[docs] def save(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None: """ ``LANE<*>:EQUalization:DFE:SAVE`` \n Snippet: ``driver.lane.equalization.dfe.save(lane = repcap.Lane.Default)`` \n Saves the DFE configuration to the file specified with method ``RsRtx.lane.equalization.dfe.name.set()`` . :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ lane_cmd_val = self._cmd_group.get_repcap_cmd_value(lane, repcap.Lane) self._core.io.write_with_opc(f'LANE{lane_cmd_val}:EQUalization:DFE:SAVE', opc_timeout_ms)
[docs] def open(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None: """ ``LANE<*>:EQUalization:DFE:OPEN`` \n Snippet: ``driver.lane.equalization.dfe.open(lane = repcap.Lane.Default)`` \n Opens and loads the equalization DFE configuration from the file specified with method ``RsRtx.lane.equalization.dfe.name.set()`` . :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') :param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call. """ lane_cmd_val = self._cmd_group.get_repcap_cmd_value(lane, repcap.Lane) self._core.io.write_with_opc(f'LANE{lane_cmd_val}:EQUalization:DFE:OPEN', opc_timeout_ms)
def clone(self) -> 'DfeCls': """ 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 = DfeCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group