Source code for RsSmw.Implementations.Source.Bb.Nr5G.Qckset.FrmFormat.Ssc

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SscCls:
	"""
	| Commands in total: 5
	| Subgroups: 1
	| Direct child commands: 4
	"""

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

	@property
	def sfi(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_sfi'):
			from .Sfi import SfiCls
			self._sfi = SfiCls(self._core, self._cmd_group)
		return self._sfi

[docs] def get_ndl_symbols(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:NDLSymbols`` \n Snippet: ``value: int = driver.source.bb.nr5G.qckset.frmFormat.ssc.get_ndl_symbols()`` \n Defines the number of downlink symbols in a special slot. Prerequisites to define the number of downlink symbols: \n - Enter downlink mode (method ``RsSmw.source.bb.nr5G.link()`` ) . - Turn off usage of special slot format (method ``RsSmw.source.bb.nr5G.qckset.frmFormat.ssc.sfi.state()`` ) . Otherwise, the command is a query only. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:NDLSymbols?') return Conversions.str_to_int(response)
[docs] def get_ng_symbols(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:NGSYmbols`` \n Snippet: ``value: int = driver.source.bb.nr5G.qckset.frmFormat.ssc.get_ng_symbols()`` \n Queries the number of guard symbols. :return: qck_set_sguard_sym: integer Range: 0 to 14 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:NGSYmbols?') return Conversions.str_to_int(response)
[docs] def get_nul_symbols(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:NULSymbols`` \n Snippet: ``value: int = driver.source.bb.nr5G.qckset.frmFormat.ssc.get_nul_symbols()`` \n Defines the number of uplink symbols in a special slot. Prerequisites to define the number of downlink symbols: \n - Enter uplink mode (method ``RsSmw.source.bb.nr5G.link()`` ) . - Turn off usage of special slot format (method ``RsSmw.source.bb.nr5G.qckset.frmFormat.ssc.sfi.state()`` ) . Otherwise, the command is a query only. """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:NULSymbols?') return Conversions.str_to_int(response)
[docs] def get_slfmt(self) -> int: """ ``[SOURce<HW>]:BB:NR5G:QCKSet:FRMFormat:SSC:SLFMt`` \n Snippet: ``value: int = driver.source.bb.nr5G.qckset.frmFormat.ssc.get_slfmt()`` \n Sets the special slot format index. :return: qck_set_slot_fmt: integer Range: 0 to 45 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:NR5G:QCKSet:FRMFormat:SSC:SLFMt?') return Conversions.str_to_int(response)
def clone(self) -> 'SscCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = SscCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group