from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from ..... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FfeCls:
"""
| Commands in total: 11
| Subgroups: 4
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ffe", 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 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 taps(self):
"""
| Commands in total: 6
| Subgroups: 5
| Direct child commands: 1
"""
if not hasattr(self, '_taps'):
from .Taps import TapsCls
self._taps = TapsCls(self._core, self._cmd_group)
return self._taps
[docs]
def save(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None:
"""
``LANE<*>:EQUalization:FFE:SAVE`` \n
Snippet: ``driver.lane.equalization.ffe.save(lane = repcap.Lane.Default)`` \n
Saves the FFE configuration to the file specified with method ``RsRtx.lane.equalization.ffe.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:FFE:SAVE', opc_timeout_ms)
[docs]
def open(self, lane=repcap.Lane.Default, opc_timeout_ms: int = -1) -> None:
"""
``LANE<*>:EQUalization:FFE:OPEN`` \n
Snippet: ``driver.lane.equalization.ffe.open(lane = repcap.Lane.Default)`` \n
Opens and loads the equalization FFE configuration from the file specified with method
``RsRtx.lane.equalization.ffe.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:FFE:OPEN', opc_timeout_ms)
def clone(self) -> 'FfeCls':
"""
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 = FfeCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group