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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CtleCls:
	"""
	| Commands in total: 13
	| Subgroups: 8
	| Direct child commands: 2
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("ctle", 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 dcGain(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_dcGain'):
			from .DcGain import DcGainCls
			self._dcGain = DcGainCls(self._core, self._cmd_group)
		return self._dcGain

	@property
	def acGain(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_acGain'):
			from .AcGain import AcGainCls
			self._acGain = AcGainCls(self._core, self._cmd_group)
		return self._acGain

	@property
	def pselection(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_pselection'):
			from .Pselection import PselectionCls
			self._pselection = PselectionCls(self._core, self._cmd_group)
		return self._pselection

	@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 zero(self):
		"""
		| Commands in total: 2
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_zero'):
			from .Zero import ZeroCls
			self._zero = ZeroCls(self._core, self._cmd_group)
		return self._zero

	@property
	def pole(self):
		"""
		| Commands in total: 2
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_pole'):
			from .Pole import PoleCls
			self._pole = PoleCls(self._core, self._cmd_group)
		return self._pole

	@property
	def sconfig(self):
		"""
		| Commands in total: 2
		| Subgroups: 2
		| Direct child commands: 0
		"""
		if not hasattr(self, '_sconfig'):
			from .Sconfig import SconfigCls
			self._sconfig = SconfigCls(self._core, self._cmd_group)
		return self._sconfig

[docs] def save(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None: """ ``LANE<*>:EQUalization:CTLE:SAVE`` \n Snippet: ``driver.lane.equalization.ctle.save(lane = repcap.Lane.Default)`` \n Saves the CTLE configuration to the file specified with method ``RsRtx.lane.equalization.ctle.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:CTLE:SAVE', opc_timeout_ms)
[docs] def open(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None: """ ``LANE<*>:EQUalization:CTLE:OPEN`` \n Snippet: ``driver.lane.equalization.ctle.open(lane = repcap.Lane.Default)`` \n Opens and loads the equalization CTLE configuration from the file specified with method ``RsRtx.lane.equalization.ctle.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:CTLE:OPEN', opc_timeout_ms)
def clone(self) -> 'CtleCls': """ 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 = CtleCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group