Source code for RsSmbv.Implementations.Source.Bb.Nr5G.Qckset.FrmFormat.Ssc.Sfi

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:SFI:STATe`` \n Snippet: ``value: bool = driver.source.bb.nr5G.qckset.frmFormat.ssc.sfi.get_state()`` \n Turns usage of the special slot format on and off. If on, select a special frame as defined by 3GPP with method ``RsSmbv.source.bb.nr5G.qckset.frmFormat.ssc.slfmt()`` . If off, select the number of symbols with \n - Downlink: method ``RsSmbv.source.bb.nr5G.qckset.frmFormat.ssc.ndl_symbols()`` - Uplink: method ``RsSmbv.source.bb.nr5G.qckset.frmFormat.ssc.nul_symbols()`` """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:SFI:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, qck_set_use_slot: bool) -> None: """ ``[SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:SFI:STATe`` \n Snippet: ``driver.source.bb.nr5G.qckset.frmFormat.ssc.sfi.set_state(qck_set_use_slot = False)`` \n Turns usage of the special slot format on and off. If on, select a special frame as defined by 3GPP with method ``RsSmbv.source.bb.nr5G.qckset.frmFormat.ssc.slfmt()`` . If off, select the number of symbols with \n - Downlink: method ``RsSmbv.source.bb.nr5G.qckset.frmFormat.ssc.ndl_symbols()`` - Uplink: method ``RsSmbv.source.bb.nr5G.qckset.frmFormat.ssc.nul_symbols()`` :param qck_set_use_slot: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(qck_set_use_slot) self._core.io.write(f'SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:SFI:STATe {param}')