Source code for RsSmw.Implementations.Source.Bb.Wlad.Pconfig.Gpi

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


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

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

	# noinspection PyTypeChecker
[docs] def get_gp_index(self) -> enums.WlanadGrpPrIdx: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:GPI:GPINdex`` \n Snippet: ``value: enums.WlanadGrpPrIdx = driver.source.bb.wlad.pconfig.gpi.get_gp_index()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAD:PCONfig:GPI:GPINdex?') return Conversions.str_to_scalar_enum(response, enums.WlanadGrpPrIdx)
[docs] def set_gp_index(self, dgpi: enums.WlanadGrpPrIdx) -> None: """ ``[SOURce<HW>]:BB:WLAD:PCONfig:GPI:GPINdex`` \n Snippet: ``driver.source.bb.wlad.pconfig.gpi.set_gp_index(dgpi = enums.WlanadGrpPrIdx.GPI0)`` \n No help available """ param = Conversions.enum_scalar_to_str(dgpi, enums.WlanadGrpPrIdx) self._core.io.write(f'SOURce<HwInstance>:BB:WLAD:PCONfig:GPI:GPINdex {param}')