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

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:EUTRa:DL:NIOT:GAP:CONFig:STATe`` \n Snippet: ``value: bool = driver.source.bb.eutra.downlink.niot.gap.config.get_state()`` \n If activated, a gap between the NPDCCH and NPDSCH with the specified duration is applied. :return: gap_config: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:GAP:CONFig:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, gap_config: bool) -> None: """ ``[SOURce<HW>]:BB:EUTRa:DL:NIOT:GAP:CONFig:STATe`` \n Snippet: ``driver.source.bb.eutra.downlink.niot.gap.config.set_state(gap_config = False)`` \n If activated, a gap between the NPDCCH and NPDSCH with the specified duration is applied. :param gap_config: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(gap_config) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:GAP:CONFig:STATe {param}')