Source code for RsSmw.Implementations.Source.Bb.Nr5G.Ubwp.Restart.Sidx

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


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

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

[docs] def get_interval(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:UBWP:RESTart:SIDX:INTerval`` \n Snippet: ``value: int = driver.source.bb.nr5G.ubwp.restart.sidx.get_interval()`` \n Defines the number of slots after which the slot index within a frame restarts. Prerequisites for this command \n - Turn on custom slot index restart (method ``RsSmw.source.bb.nr5G.ubwp.restart.sidx.state()`` ) . """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:UBWP:RESTart:SIDX:INTerval?') return Conversions.str_to_int(response)
[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:NR5G:UBWP:RESTart:SIDX:STATe`` \n Snippet: ``value: bool = driver.source.bb.nr5G.ubwp.restart.sidx.get_state()`` \n Turns a restart of the slot index within a frame on and off. If on, define the restart interval with method ``RsSmw.source.bb.nr5G.ubwp.restart.sidx.interval()`` . """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:UBWP:RESTart:SIDX:STATe?') return Conversions.str_to_bool(response)