Source code for RsSmw.Implementations.Source.Bb.V5G.Downlink.Conf

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


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

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

	# noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.PdschSchedMode: """ ``[SOURce<HW>]:BB:V5G:DL:CONF:MODE`` \n Snippet: ``value: enums.PdschSchedMode = driver.source.bb.v5G.downlink.conf.get_mode()`` \n Selects manual or automatic scheduling mode. :return: scheduling: MANual | AUTO """ response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:CONF:MODE?') return Conversions.str_to_scalar_enum(response, enums.PdschSchedMode)
[docs] def set_mode(self, scheduling: enums.PdschSchedMode) -> None: """ ``[SOURce<HW>]:BB:V5G:DL:CONF:MODE`` \n Snippet: ``driver.source.bb.v5G.downlink.conf.set_mode(scheduling = enums.PdschSchedMode.ASEQuence)`` \n Selects manual or automatic scheduling mode. :param scheduling: MANual | AUTO """ param = Conversions.enum_scalar_to_str(scheduling, enums.PdschSchedMode) self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:CONF:MODE {param}')