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

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


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

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

[docs] def get(self, lane=repcap.Lane.Default) -> str: """ ``LANE<*>:EQUalization:CTLE:SCONfig:LIST`` \n Snippet: ``value: str = driver.lane.equalization.ctle.sconfig.listPy.get(lane = repcap.Lane.Default)`` \n Returns the list of available presets for the selected standard. :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:CTLE:SCONfig:LIST?') return trim_str_response(response)