Source code for rsrtx.Implementations.Lane.Equalization.Ffe.Name

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Utilities import trim_str_response
from ..... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class NameCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

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

[docs] def set(self, save_set_path: str, lane=repcap.Lane.Default) -> None: """ ``LANE<*>:EQUalization:FFE:NAME`` \n Snippet: ``driver.lane.equalization.ffe.name.set(save_set_path = 'abc', lane = repcap.Lane.Default)`` \n Sets the file name, file format and path of the FFE equalization setup file. The file format is always .xml. :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') """ param = Conversions.value_to_quoted_str(save_set_path) 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:NAME {param}')
[docs] def get(self, lane=repcap.Lane.Default) -> str: """ ``LANE<*>:EQUalization:FFE:NAME`` \n Snippet: ``value: str = driver.lane.equalization.ffe.name.get(lane = repcap.Lane.Default)`` \n Sets the file name, file format and path of the FFE equalization setup file. The file format is always .xml. :param lane: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Lane') """ lane_cmd_val = self._cmd_group.get_repcap_cmd_value(lane, repcap.Lane) response = self._core.io.query_str_with_opc(f'LANE{lane_cmd_val}:EQUalization:FFE:NAME?') return trim_str_response(response)