Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Configure.Nr5G.Ldirection

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


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

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

[docs] def set(self, mode: enums.DlUlDirection) -> None: """ ``CONFigure[:NR5G]:LDIRection`` \n Snippet: ``driver.applications.k14Xnr5G.configure.nr5G.ldirection.set(mode = enums.DlUlDirection.DL)`` \n Selects the link direction you want to analyze. :param mode: DL Selects the downlink application to analyze 5G NR downlink signals. Requires option FSW-K144. UL Selects the uplink application to analyze 5G NR uplink signals. Requires option FSW-K145. """ param = Conversions.enum_scalar_to_str(mode, enums.DlUlDirection) self._core.io.write(f'CONFigure:NR5G:LDIRection {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.DlUlDirection: """ ``CONFigure[:NR5G]:LDIRection`` \n Snippet: ``value: enums.DlUlDirection = driver.applications.k14Xnr5G.configure.nr5G.ldirection.get()`` \n Selects the link direction you want to analyze. :return: mode: DL Selects the downlink application to analyze 5G NR downlink signals. Requires option FSW-K144. UL Selects the uplink application to analyze 5G NR uplink signals. Requires option FSW-K145. """ response = self._core.io.query_str(f'CONFigure:NR5G:LDIRection?') return Conversions.str_to_scalar_enum(response, enums.DlUlDirection)