Source code for RsSmw.Implementations.Source.Bb.Nr5G.Node.Cell.Schby

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


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

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

	# noinspection PyTypeChecker
[docs] def get(self, cellNull=repcap.CellNull.Default) -> enums.CellAll: """ ``[SOURce<HW>]:BB:NR5G:NODE:CELL<CC(CH0)>:SCHBy`` \n Snippet: ``value: enums.CellAll = driver.source.bb.nr5G.node.cell.schby.get(cellNull = repcap.CellNull.Default)`` \n Displays in which cell coordinates the carrier aggregation, if there is intra-band CA. Queries the component carrier/cell that signals the UL and DL grants for the selected cell. The signaling cell is determined by its cell index. According to the 5G NR specification, cross-carrier scheduling has to be enabled per user and per component carrier. To enable signaling for one particular cell on the primary cell, i.e. cross-carrier scheduling, set the 'Scheduled By' to 0. :param cellNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cell') :return: sched_by: 0 | 1| 2 | 3| 4 | 5| 6 | 7| 8 | 9| 10 | 11 | 12 | 13 | 14 | 15 """ cellNull_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNull, repcap.CellNull) response = self._core.io.query_str(f'SOURce<HwInstance>:BB:NR5G:NODE:CELL{cellNull_cmd_val}:SCHBy?') return Conversions.str_to_scalar_enum(response, enums.CellAll)