Source code for rsrtx.Implementations.SignalConfig.Setup.Setting.SerStandard

from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
from ..... import repcap


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

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

[docs] def set(self, serial_standard: enums.SerialStandard, setupSetting=repcap.SetupSetting.Default) -> None: """ ``SIGNalconfig:SETup:SETTing<*>:SERStandard`` \n Snippet: ``driver.signalConfig.setup.setting.serStandard.set(serial_standard = enums.SerialStandard.CUSTOM, setupSetting = repcap.SetupSetting.Default)`` \n Sets the serial standard. Set CUSTOM to adjust the symbol rate manually. Technology / Serial standard / SCPI abbreviation \n - USB / USB 2.0 / USB20 - USB 3.2 Gen 1 / USB32GEN1 - USB 3.2 Gen 2 / USB32GEN2 - USB 4.0 / USB40 - DisplayPort / Displayport 1.1 / DISPPORT11 - Displayport 1.2 / DISPPORT12 - Fibre Channel / Fibre Channel 1x / FIBCHAN1 - Fibre Channel 2x / FIBCHAN2 - Fibre Channel 4x / FIBCHAN4 - Fibre Channel 8x / FIBCHAN8 - Fibre Channel 16x / FIBCHAN16 - HDMI / HDMI 1.2 / HDMI12 - HDMI 1.4 / HDMI14 - HDMI 2.0 / HDMI20 - PCIe / PCIe Gen 1 / PCIGEN1 - PCIe Gen 2 / PCIGEN2 - PCIe Gen 3 / PCIGEN3 - PCIe Gen 4 / PCIGEN4 - SATA / SATA Gen 1 (1/500) / SATAGEN1500 - SATA Gen 1 (1/1667) / SATAGEN11667 - SATA Gen 1 / SATAGEN1 - SATA Gen 2 (1/500) / SATAGEN2500 - SATA Gen 2 (1/1667) / SATAGEN21667 - SATA Gen 2 / SATAGEN2 - SATA Gen 3 (1/500) / SATAGEN3500 - SATA Gen 3 (1/1667) / SATAGEN31667 - SATA Gen 3 / SATAGEN3 - SAS / SAS Gen 1 / SASGEN1 - SAS Gen 2 / SASGEN2 - SAS Gen 3 / SASGEN3 - Thunderbolt / Thunderbolt 10G / TB10G - XAUI / XAUI / XAUI - Ethernet / 100Base-T / HBT - 1000Base-T / TBT - Automotive Ethernet / 100Base-T1 / HBTO - 1000Base-T1 / TBTO - 2.5Base-T1 / TPFGBTO - 5GBase-T1 / FGBTO - 10GBase-T1 / TGBTO - GMSL / GMSL1 / GMSL1 - GMSL2 (3Gbps) / GMSL23G - GMSL2 (6Gbps) / GMSL26G - GMSL3 (6Gbps) / GMSL363G - GMSL3 (12Gbps) / GMSL312G :param setupSetting: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Setting') """ param = Conversions.enum_scalar_to_str(serial_standard, enums.SerialStandard) setupSetting_cmd_val = self._cmd_group.get_repcap_cmd_value(setupSetting, repcap.SetupSetting) self._core.io.write_with_opc(f'SIGNalconfig:SETup:SETTing{setupSetting_cmd_val}:SERStandard {param}')
# noinspection PyTypeChecker
[docs] def get(self, setupSetting=repcap.SetupSetting.Default) -> enums.SerialStandard: """ ``SIGNalconfig:SETup:SETTing<*>:SERStandard`` \n Snippet: ``value: enums.SerialStandard = driver.signalConfig.setup.setting.serStandard.get(setupSetting = repcap.SetupSetting.Default)`` \n Sets the serial standard. Set CUSTOM to adjust the symbol rate manually. Technology / Serial standard / SCPI abbreviation \n - USB / USB 2.0 / USB20 - USB 3.2 Gen 1 / USB32GEN1 - USB 3.2 Gen 2 / USB32GEN2 - USB 4.0 / USB40 - DisplayPort / Displayport 1.1 / DISPPORT11 - Displayport 1.2 / DISPPORT12 - Fibre Channel / Fibre Channel 1x / FIBCHAN1 - Fibre Channel 2x / FIBCHAN2 - Fibre Channel 4x / FIBCHAN4 - Fibre Channel 8x / FIBCHAN8 - Fibre Channel 16x / FIBCHAN16 - HDMI / HDMI 1.2 / HDMI12 - HDMI 1.4 / HDMI14 - HDMI 2.0 / HDMI20 - PCIe / PCIe Gen 1 / PCIGEN1 - PCIe Gen 2 / PCIGEN2 - PCIe Gen 3 / PCIGEN3 - PCIe Gen 4 / PCIGEN4 - SATA / SATA Gen 1 (1/500) / SATAGEN1500 - SATA Gen 1 (1/1667) / SATAGEN11667 - SATA Gen 1 / SATAGEN1 - SATA Gen 2 (1/500) / SATAGEN2500 - SATA Gen 2 (1/1667) / SATAGEN21667 - SATA Gen 2 / SATAGEN2 - SATA Gen 3 (1/500) / SATAGEN3500 - SATA Gen 3 (1/1667) / SATAGEN31667 - SATA Gen 3 / SATAGEN3 - SAS / SAS Gen 1 / SASGEN1 - SAS Gen 2 / SASGEN2 - SAS Gen 3 / SASGEN3 - Thunderbolt / Thunderbolt 10G / TB10G - XAUI / XAUI / XAUI - Ethernet / 100Base-T / HBT - 1000Base-T / TBT - Automotive Ethernet / 100Base-T1 / HBTO - 1000Base-T1 / TBTO - 2.5Base-T1 / TPFGBTO - 5GBase-T1 / FGBTO - 10GBase-T1 / TGBTO - GMSL / GMSL1 / GMSL1 - GMSL2 (3Gbps) / GMSL23G - GMSL2 (6Gbps) / GMSL26G - GMSL3 (6Gbps) / GMSL363G - GMSL3 (12Gbps) / GMSL312G :param setupSetting: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Setting') """ setupSetting_cmd_val = self._cmd_group.get_repcap_cmd_value(setupSetting, repcap.SetupSetting) response = self._core.io.query_str_with_opc(f'SIGNalconfig:SETup:SETTing{setupSetting_cmd_val}:SERStandard?') return Conversions.str_to_scalar_enum(response, enums.SerialStandard)