from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from ....... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LimitsCls:
"""
| Commands in total: 3
| Subgroups: 1
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("limits", core, parent)
@property
def tap(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_tap'):
from .Tap import TapCls
self._tap = TapCls(self._core, self._cmd_group)
return self._tap
[docs]
def preset(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None:
"""
``LANE<*>:EQUalization:TRAining:DFE:LIMits:PRESet`` \n
Snippet: ``driver.lane.equalization.training.dfe.limits.preset(lane = repcap.Lane.Default)`` \n
Sets the DFE taps limits to their default values.
: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:TRAining:DFE:LIMits:PRESet', opc_timeout_ms)
def clone(self) -> 'LimitsCls':
"""
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 = LimitsCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group