Source code for RsSmw.Implementations.Source.Bb.V5G.Downlink.Phich

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


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

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

	# noinspection PyTypeChecker
[docs] def get_duration(self) -> enums.EuTraDuration: """ ``[SOURce<HW>]:BB:V5G:DL:PHICh:DURation`` \n Snippet: ``value: enums.EuTraDuration = driver.source.bb.v5G.downlink.phich.get_duration()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:PHICh:DURation?') return Conversions.str_to_scalar_enum(response, enums.EuTraDuration)
[docs] def set_duration(self, duration: enums.EuTraDuration) -> None: """ ``[SOURce<HW>]:BB:V5G:DL:PHICh:DURation`` \n Snippet: ``driver.source.bb.v5G.downlink.phich.set_duration(duration = enums.EuTraDuration.EXTended)`` \n No help available """ param = Conversions.enum_scalar_to_str(duration, enums.EuTraDuration) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:PHICh:DURation {param}')
# noinspection PyTypeChecker
[docs] def get_ng_parameter(self) -> enums.PhichNg: """ ``[SOURce<HW>]:BB:V5G:DL:PHICh:NGParameter`` \n Snippet: ``value: enums.PhichNg = driver.source.bb.v5G.downlink.phich.get_ng_parameter()`` \n No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:PHICh:NGParameter?') return Conversions.str_to_scalar_enum(response, enums.PhichNg)
[docs] def set_ng_parameter(self, ng_parameter: enums.PhichNg) -> None: """ ``[SOURce<HW>]:BB:V5G:DL:PHICh:NGParameter`` \n Snippet: ``driver.source.bb.v5G.downlink.phich.set_ng_parameter(ng_parameter = enums.PhichNg.NG1)`` \n No help available """ param = Conversions.enum_scalar_to_str(ng_parameter, enums.PhichNg) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:PHICh:NGParameter {param}')