from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from .... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class EqualizationCls:
"""
| Commands in total: 68
| Subgroups: 6
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("equalization", 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 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 ctle(self):
"""
| Commands in total: 13
| Subgroups: 8
| Direct child commands: 2
"""
if not hasattr(self, '_ctle'):
from .Ctle import CtleCls
self._ctle = CtleCls(self._core, self._cmd_group)
return self._ctle
@property
def ffe(self):
"""
| Commands in total: 11
| Subgroups: 4
| Direct child commands: 2
"""
if not hasattr(self, '_ffe'):
from .Ffe import FfeCls
self._ffe = FfeCls(self._core, self._cmd_group)
return self._ffe
@property
def dfe(self):
"""
| Commands in total: 21
| Subgroups: 5
| Direct child commands: 2
"""
if not hasattr(self, '_dfe'):
from .Dfe import DfeCls
self._dfe = DfeCls(self._core, self._cmd_group)
return self._dfe
@property
def training(self):
"""
| Commands in total: 18
| Subgroups: 8
| Direct child commands: 1
"""
if not hasattr(self, '_training'):
from .Training import TrainingCls
self._training = TrainingCls(self._core, self._cmd_group)
return self._training
[docs]
def preset(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None:
"""
``LANE<*>:EQUalization:PRESet`` \n
Snippet: ``driver.lane.equalization.preset(lane = repcap.Lane.Default)`` \n
Presets the equalization settings 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:PRESet', opc_timeout_ms)
[docs]
def save(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None:
"""
``LANE<*>:EQUalization:SAVE`` \n
Snippet: ``driver.lane.equalization.save(lane = repcap.Lane.Default)`` \n
Saves the equalization configuration to the file specified with method ``RsRtx.lane.equalization.save()`` .
: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:SAVE', opc_timeout_ms)
[docs]
def open(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None:
"""
``LANE<*>:EQUalization:OPEN`` \n
Snippet: ``driver.lane.equalization.open(lane = repcap.Lane.Default)`` \n
Opens and loads the equalization configuration from the file specified with method ``RsRtx.lane.equalization.save()`` .
: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:OPEN', opc_timeout_ms)
def clone(self) -> 'EqualizationCls':
"""
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 = EqualizationCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group