Source code for RsSmw.Implementations.Source.Bb.Wlay.Pconfig.Lhdr

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LhdrCls:
	"""
	| Commands in total: 3
	| Subgroups: 2
	| Direct child commands: 1
	"""

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

	@property
	def addp(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_addp'):
			from .Addp import AddpCls
			self._addp = AddpCls(self._core, self._cmd_group)
		return self._addp

	@property
	def pagr(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_pagr'):
			from .Pagr import PagrCls
			self._pagr = PagrCls(self._core, self._cmd_group)
		return self._pagr

	# noinspection PyTypeChecker
[docs] def get_gi_type(self) -> enums.SequenceLength: """ ``[SOURce<HW>]:BB:WLAY:PCONfig:LHDR:GITYpe`` \n Snippet: ``value: enums.SequenceLength = driver.source.bb.wlay.pconfig.lhdr.get_gi_type()`` \n Selects the type of the guard interval (GI) . You can select between GI types short, normal or long. :return: gi_type: SHORT | NORMAL | LONG """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAY:PCONfig:LHDR:GITYpe?') return Conversions.str_to_scalar_enum(response, enums.SequenceLength)
[docs] def set_gi_type(self, gi_type: enums.SequenceLength) -> None: """ ``[SOURce<HW>]:BB:WLAY:PCONfig:LHDR:GITYpe`` \n Snippet: ``driver.source.bb.wlay.pconfig.lhdr.set_gi_type(gi_type = enums.SequenceLength.LONG)`` \n Selects the type of the guard interval (GI) . You can select between GI types short, normal or long. :param gi_type: SHORT | NORMAL | LONG """ param = Conversions.enum_scalar_to_str(gi_type, enums.SequenceLength) self._core.io.write(f'SOURce<HwInstance>:BB:WLAY:PCONfig:LHDR:GITYpe {param}')
def clone(self) -> 'LhdrCls': """ 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 = LhdrCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group