Source code for RsSmw.Implementations.Source.Bb.Eutra.Downlink.Niot.Gap.Duration

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


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

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

	# noinspection PyTypeChecker
[docs] def get_coefficent(self) -> enums.EutraNbiotGapDurationCoefficent: """ ``[SOURce<HW>]:BB:EUTRa:DL:NIOT:GAP:DURation:COEFficent`` \n Snippet: ``value: enums.EutraNbiotGapDurationCoefficent = driver.source.bb.eutra.downlink.niot.gap.duration.get_coefficent()`` \n Sets the gap duration coefficient. :return: gap_dur_coeff: 1_8 | 1_4 | 3_8 | 1_2 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:GAP:DURation:COEFficent?') return Conversions.str_to_scalar_enum(response, enums.EutraNbiotGapDurationCoefficent)
[docs] def set_coefficent(self, gap_dur_coeff: enums.EutraNbiotGapDurationCoefficent) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:NIOT:GAP:DURation:COEFficent`` \n Snippet: ``driver.source.bb.eutra.downlink.niot.gap.duration.set_coefficent(gap_dur_coeff = enums.EutraNbiotGapDurationCoefficent._1_2)`` \n Sets the gap duration coefficient. :param gap_dur_coeff: 1_8 | 1_4 | 3_8 | 1_2 """ param = Conversions.enum_scalar_to_str(gap_dur_coeff, enums.EutraNbiotGapDurationCoefficent) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:GAP:DURation:COEFficent {param}')